Fix SpaceBar pan (#1013)

This commit is contained in:
Faustino Kialungila 2020-03-19 16:59:20 +01:00 committed by GitHub
parent 82ce068972
commit f14aaccc38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}