Skip to content

Commit

Permalink
Fix move utility bug
Browse files Browse the repository at this point in the history
  • Loading branch information
clauderic committed Sep 23, 2024
1 parent 1998c20 commit 50a1f35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/helpers/src/move.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ function mutate<
};
}

const isBelowTarget =
target.shape && position.y > target.shape.boundingRectangle.bottom;
const isBelowTarget = target.shape && position.y > target.shape.center.y;
const modifier = isBelowTarget ? 1 : 0;
const sourceItem = items[sourceParent][sourceIndex];

Expand Down

0 comments on commit 50a1f35

Please sign in to comment.