Skip to content

Commit

Permalink
perf: optimize hand tool spacebar
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehue committed Mar 30, 2024
1 parent 2ae04c6 commit a916d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/designer/Designer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export class Designer {
lastTool = this.designerStore.activeTool;
this.designerStore.setActiveTool("hand");
isSpacePressed = true;
this.maybeRepaint();
}
this.repaint();
});

addEventListener("keyup", () => {
Expand Down

0 comments on commit a916d76

Please sign in to comment.