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

View File

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