mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: prevent canvas drag while editing text (#4552)
This commit is contained in:
parent
c03845bac3
commit
0a89c4b0c8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue