Virtual whiteboard for sketching hand-drawn like diagrams
Only insert text on double click when selection is enabled (#1937)
Christopher Chedeau925db9dcca58
diff --git a/src/components/App.tsx b/src/components/App.tsxindex 244aef798d..831e510031 100644--- a/src/components/App.tsx+++ b/src/components/App.tsx@@ -1746,6 +1746,10 @@ class App extends React.Component<ExcalidrawProps, AppState> {if (this.state.multiElement) {return;}+ // we should only be able to double click when mode is selection+ if (this.state.elementType !== "selection") {+ return;+ }const selectedElements = getSelectedElements(globalSceneState.getElements(),