diff --git a/packages/primevue/src/datatable/DataTable.vue b/packages/primevue/src/datatable/DataTable.vue index 1a6b7e7e7..121411ba7 100755 --- a/packages/primevue/src/datatable/DataTable.vue +++ b/packages/primevue/src/datatable/DataTable.vue @@ -295,7 +295,6 @@ import { getOffset, getOuterHeight, getOuterWidth, - getWindowScrollTop, isClickable, removeClass, setAttribute @@ -1532,7 +1531,7 @@ export default { if (this.rowDragging && this.draggedRowIndex !== index) { let rowElement = event.currentTarget; - let rowY = getOffset(rowElement).top + getWindowScrollTop(); + let rowY = getOffset(rowElement).top; let pageY = event.pageY; let rowMidY = rowY + getOuterHeight(rowElement) / 2; let prevRowElement = rowElement.previousElementSibling;