Skip to content

Commit eb9a56c

Browse files
committed
fix: fix issue with item not properly animating forward to the next row
1 parent 35996f5 commit eb9a56c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SortableContainer/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ export default function sortableContainer(
727727
translate.x = this.width + this.marginOffset.x;
728728
if (
729729
edgeOffset.left + translate.x >
730-
this.containerBoundingRect.width - offset.width
730+
this.containerBoundingRect.width - offset.width * 2
731731
) {
732732
// If it moves passed the right bounds, then animate it to the first position of the next row.
733733
// We just use the offset of the next node to calculate where to move, because that node's original position

0 commit comments

Comments
 (0)