Skip to content

Commit f77d193

Browse files
authored
Merge pull request #691 from alexcheuk/master
Fix shift to next row calculation
2 parents b11b65e + eb9a56c commit f77d193

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
@@ -724,7 +724,7 @@ export default function sortableContainer(
724724
translate.x = this.width + this.marginOffset.x;
725725
if (
726726
edgeOffset.left + translate.x >
727-
this.containerBoundingRect.width - offset.width
727+
this.containerBoundingRect.width - offset.width * 2
728728
) {
729729
// If it moves passed the right bounds, then animate it to the first position of the next row.
730730
// 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)