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

This commit is contained in:
Arun
2022-01-08 23:50:25 +01:00
committed by GitHub
parent c03845bac3
commit 0a89c4b0c8
+2 -1
View File
@@ -2735,7 +2735,8 @@ class App extends React.Component<AppProps, AppState> {
(event.button === POINTER_BUTTON.WHEEL || (event.button === POINTER_BUTTON.WHEEL ||
(event.button === POINTER_BUTTON.MAIN && isHoldingSpace) || (event.button === POINTER_BUTTON.MAIN && isHoldingSpace) ||
this.state.viewModeEnabled) this.state.viewModeEnabled)
) ) ||
isTextElement(this.state.editingElement)
) { ) {
return false; return false;
} }