Skip to content

Commit

Permalink
Move the blocks in 20 step increments for demo purposes until
Browse files Browse the repository at this point in the history
sync is faster :).
  • Loading branch information
aboodman committed Feb 17, 2021
1 parent 4160d71 commit 831118d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/designer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ export function Designer({data}: {data: Data}) {
};

const handlers = {
moveLeft: () => data.moveShape({id: selectedID, dx: -1, dy: 0}),
moveRight: () => data.moveShape({id: selectedID, dx: 1, dy: 0}),
moveUp: () => data.moveShape({id: selectedID, dx: 0, dy: -1}),
moveDown: () => data.moveShape({id: selectedID, dx: 0, dy: 1}),
moveLeft: () => data.moveShape({id: selectedID, dx: -20, dy: 0}),
moveRight: () => data.moveShape({id: selectedID, dx: 20, dy: 0}),
moveUp: () => data.moveShape({id: selectedID, dx: 0, dy: -20}),
moveDown: () => data.moveShape({id: selectedID, dx: 0, dy: 20}),
};

return (
Expand Down

0 comments on commit 831118d

Please sign in to comment.