1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-02 03:25:53 +01:00

fix: showing grabbing cursor when holding spacebar (#6015)

This commit is contained in:
David Luzar 2022-12-20 13:22:20 +01:00 committed by GitHub
parent 539505affd
commit 6ab3f0eb74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2120,7 +2120,7 @@ class App extends React.Component<AppProps, AppState> {
}
if (event.key === KEYS.SPACE && gesture.pointers.size === 0) {
isHoldingSpace = true;
setCursor(this.canvas, CURSOR_TYPE.GRABBING);
setCursor(this.canvas, CURSOR_TYPE.GRAB);
event.preventDefault();
}