소스 검색

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

David Luzar 2 년 전
부모
커밋
6ab3f0eb74
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/App.tsx

+ 1 - 1
src/components/App.tsx

@@ -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();
       }