mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Fix SpaceBar pan (#1013)
This commit is contained in:
parent
82ce068972
commit
f14aaccc38
1 changed files with 2 additions and 1 deletions
|
@ -636,7 +636,8 @@ export class App extends React.Component<any, AppState> {
|
||||||
} else if (event.key === "q") {
|
} else if (event.key === "q") {
|
||||||
this.toggleLock();
|
this.toggleLock();
|
||||||
}
|
}
|
||||||
} else if (event.key === KEYS.SPACE && gesture.pointers.size === 0) {
|
}
|
||||||
|
if (event.key === KEYS.SPACE && gesture.pointers.size === 0) {
|
||||||
isHoldingSpace = true;
|
isHoldingSpace = true;
|
||||||
document.documentElement.style.cursor = CURSOR_TYPE.GRABBING;
|
document.documentElement.style.cursor = CURSOR_TYPE.GRABBING;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue