Browse Source

Fix SpaceBar pan (#1013)

Faustino Kialungila 5 years ago
parent
commit
f14aaccc38
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/App.tsx

+ 2 - 1
src/components/App.tsx

@@ -636,7 +636,8 @@ export class App extends React.Component<any, AppState> {
       } else if (event.key === "q") {
         this.toggleLock();
       }
-    } else if (event.key === KEYS.SPACE && gesture.pointers.size === 0) {
+    }
+    if (event.key === KEYS.SPACE && gesture.pointers.size === 0) {
       isHoldingSpace = true;
       document.documentElement.style.cursor = CURSOR_TYPE.GRABBING;
     }