浏览代码

double click to add text when using default selection tool

Ryan Di 1 月之前
父节点
当前提交
2132c9ac44
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/excalidraw/components/App.tsx

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

@@ -5424,7 +5424,7 @@ class App extends React.Component<AppProps, AppState> {
       return;
     }
     // 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;
     }