mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
prevent dragging the editing text element
This commit is contained in:
parent
bf7810306c
commit
ac00b4ef2b
1 changed files with 1 additions and 1 deletions
|
@ -3206,7 +3206,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
const selectedElements = getSelectedElements(
|
||||
this.scene.getElements(),
|
||||
this.state,
|
||||
);
|
||||
).filter((element) => element.id !== this.state.editingElement?.id);
|
||||
// prevent dragging even if we're no longer holding cmd/ctrl otherwise
|
||||
// it would have weird results (stuff jumping all over the screen)
|
||||
if (selectedElements.length > 0 && !pointerDownState.withCmdOrCtrl) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue