From f14aaccc38685750acc200b04279fb7036166455 Mon Sep 17 00:00:00 2001 From: Faustino Kialungila Date: Thu, 19 Mar 2020 16:59:20 +0100 Subject: [PATCH] Fix SpaceBar pan (#1013) --- src/components/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 606f0b67..228d0afe 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -636,7 +636,8 @@ export class App extends React.Component { } 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; }