Browse Source

fix: prevent canvas drag while editing text (#4552)

Arun 3 years ago
parent
commit
0a89c4b0c8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/App.tsx

+ 2 - 1
src/components/App.tsx

@@ -2735,7 +2735,8 @@ class App extends React.Component<AppProps, AppState> {
         (event.button === POINTER_BUTTON.WHEEL ||
           (event.button === POINTER_BUTTON.MAIN && isHoldingSpace) ||
           this.state.viewModeEnabled)
-      )
+      ) ||
+      isTextElement(this.state.editingElement)
     ) {
       return false;
     }