Fix SpaceBar pan (#1013)

This commit is contained in:
Faustino Kialungila
2020-03-19 08:59:20 -07:00
committed by GitHub
parent 82ce068972
commit f14aaccc38
+2 -1
View File
@@ -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;
}