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

This commit is contained in:
Arun 2022-01-09 04:20:25 +05:30 committed by GitHub
parent c03845bac3
commit 0a89c4b0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
} }