Skip to content

Commit

Permalink
Merge pull request #691 from alexcheuk/master
Browse files Browse the repository at this point in the history
Fix shift to next row calculation
  • Loading branch information
clauderic authored Mar 19, 2021
2 parents b11b65e + eb9a56c commit f77d193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SortableContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ export default function sortableContainer(
translate.x = this.width + this.marginOffset.x;
if (
edgeOffset.left + translate.x >
this.containerBoundingRect.width - offset.width
this.containerBoundingRect.width - offset.width * 2
) {
// If it moves passed the right bounds, then animate it to the first position of the next row.
// We just use the offset of the next node to calculate where to move, because that node's original position
Expand Down

0 comments on commit f77d193

Please sign in to comment.