mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-23 02:07:09 +02:00
Fix SpaceBar pan (#1013)
This commit is contained in:

committed by
GitHub

parent
82ce068972
commit
f14aaccc38
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user