Skip to content

Commit

Permalink
Fix: Force single drag direction
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi committed Apr 2, 2019
1 parent b47b8e1 commit 56e5327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/RangeBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ export const RangeBox = React.memo(function RangeBox({

const newCell = {
...cell,
startX,
startX: moveAxis === 'y' ? cell.startX : startX,
endX: startX + cell.spanX - 1,
startY,
startY: moveAxis === 'x' ? cell.startY : startY,
endY: startY + cell.spanY - 1,
};

Expand Down

0 comments on commit 56e5327

Please sign in to comment.