Skip to content

Commit e580bfa

Browse files
author
Claudéric Demers
authored
Update to pageX/Y Offset for initialWindowScroll
1 parent fe83573 commit e580bfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SortableContainer/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
272272
};
273273

274274
this.initialWindowScroll = {
275-
top: (window.scrollY || window.pageYOffset),
276-
left: (window.scrollX || window.pageXOffset),
275+
top: window.pageYOffset,
276+
left: window.pageXOffset,
277277
};
278278

279279
const fields = node.querySelectorAll('input, textarea, select');

0 commit comments

Comments
 (0)