mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-12-02 01:34:58 +03:00
prevent dragging the editing text element
This commit is contained in:
1 parent
bf7810306c
commit
ac00b4ef2b
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user