double click to add text when using default selection tool

This commit is contained in:
Ryan Di
2025-07-23 17:58:01 +10:00
parent 285134405b
commit 2132c9ac44

View File

@ -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;
}