From 4c5e196f259c1a4777ffb4a488d15194f9a708f1 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Sat, 7 Oct 2023 19:00:25 +0200 Subject: [PATCH] default tool should be selection not hand in view mode --- src/components/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index b1b7eabf2..b40ccea80 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -2918,7 +2918,7 @@ class App extends React.Component { if (event.key === KEYS.K && !event.altKey && !event[KEYS.CTRL_OR_CMD]) { if (isLaserPointerActive(this.state)) { this.setActiveTool({ - type: this.state.viewModeEnabled ? "hand" : "selection", + type: "selection", }); } else { this.setActiveTool({ type: "laser" }); @@ -2929,7 +2929,7 @@ class App extends React.Component { if (this.state.viewModeEnabled) { //revert to hand in case a key is pressed (K is handled above) if (event.key !== KEYS.K) { - this.setActiveTool({ type: "hand" }); + this.setActiveTool({ type: "selection" }); } return; }