diff --git a/src/components/App.tsx b/src/components/App.tsx index 8a0a5643..9a84579c 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -2937,6 +2937,8 @@ class App extends React.Component { }); this.savePointer(event.clientX, event.clientY, "down"); + this.updateGestureOnPointerDown(event); + if (this.handleCanvasPanUsingWheelOrSpaceDrag(event)) { return; } @@ -2949,8 +2951,6 @@ class App extends React.Component { return; } - this.updateGestureOnPointerDown(event); - // don't select while panning if (gesture.pointers.size > 1) { return; @@ -3128,7 +3128,7 @@ class App extends React.Component { ): boolean => { if ( !( - gesture.pointers.size === 0 && + gesture.pointers.size <= 1 && (event.button === POINTER_BUTTON.WHEEL || (event.button === POINTER_BUTTON.MAIN && isHoldingSpace) || this.state.viewModeEnabled)