Skip to content

Commit

Permalink
Use onCanvasLeave in test game's Drag component
Browse files Browse the repository at this point in the history
  • Loading branch information
suchipi committed Jun 17, 2020
1 parent 3f75289 commit c7be799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/game/src/Drag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default function Drag() {
}
}
mouse.onMouseUp(handleUp);
mouse.onCanvasLeave(handleUp);

useDraw((context) => {
if (target.present) {
Expand Down

0 comments on commit c7be799

Please sign in to comment.