2
0
Эх сурвалжийг харах

double click to add text when using default selection tool

Ryan Di 1 сар өмнө
parent
commit
2132c9ac44

+ 1 - 1
packages/excalidraw/components/App.tsx

@@ -5424,7 +5424,7 @@ class App extends React.Component<AppProps, AppState> {
       return;
       return;
     }
     }
     // we should only be able to double click when mode is selection
     // we should only be able to double click when mode is selection
-    if (this.state.activeTool.type !== "selection") {
+    if (this.state.activeTool.type !== this.defaultSelectionTool) {
       return;
       return;
     }
     }