fix: prevent canvas drag while editing text (#4552)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user