@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
package/dist/dnd-kit-core.esm.js
CHANGED
|
@@ -1773,7 +1773,7 @@ function useAutoScroller(_ref) {
|
|
|
1773
1773
|
|
|
1774
1774
|
const scrollLeft = scrollSpeed.current.x * scrollDirection.current.x;
|
|
1775
1775
|
const scrollTop = scrollSpeed.current.y * scrollDirection.current.y;
|
|
1776
|
-
scrollContainer.scrollBy(scrollLeft, scrollTop);
|
|
1776
|
+
scrollContainer.scrollBy(Math.round(scrollLeft), Math.round(scrollTop));
|
|
1777
1777
|
}, []);
|
|
1778
1778
|
const sortedScrollableAncestors = useMemo(() => order === TraversalOrder.TreeOrder ? [...scrollableAncestors].reverse() : scrollableAncestors, [order, scrollableAncestors]);
|
|
1779
1779
|
useEffect(() => {
|