@lucasols/dnd-kit-core 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dnd-kit-core.cjs.development.js +1 -1
- package/dist/dnd-kit-core.cjs.development.js.map +1 -1
- package/dist/dnd-kit-core.cjs.production.min.js +1 -1
- package/dist/dnd-kit-core.cjs.production.min.js.map +1 -1
- package/dist/dnd-kit-core.esm.js +1 -1
- package/dist/dnd-kit-core.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -1774,7 +1774,7 @@ function useAutoScroller(_ref) {
|
|
|
1774
1774
|
|
|
1775
1775
|
const scrollLeft = scrollSpeed.current.x * scrollDirection.current.x;
|
|
1776
1776
|
const scrollTop = scrollSpeed.current.y * scrollDirection.current.y;
|
|
1777
|
-
scrollContainer.scrollBy(scrollLeft, scrollTop);
|
|
1777
|
+
scrollContainer.scrollBy(Math.round(scrollLeft), Math.round(scrollTop));
|
|
1778
1778
|
}, []);
|
|
1779
1779
|
const sortedScrollableAncestors = React.useMemo(() => order === exports.TraversalOrder.TreeOrder ? [...scrollableAncestors].reverse() : scrollableAncestors, [order, scrollableAncestors]);
|
|
1780
1780
|
React.useEffect(() => {
|