Browse Source

fix context menu not opening

Ryan Di 1 month ago
parent
commit
96c5de385b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/excalidraw/components/App.tsx

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

@@ -10624,7 +10624,7 @@ class App extends React.Component<AppProps, AppState> {
           event.nativeEvent.pointerType === "pen" &&
           // always allow if user uses a pen secondary button
           event.button !== POINTER_BUTTON.SECONDARY)) &&
-      this.state.activeTool.type !== "selection"
+      this.state.activeTool.type !== this.defaultSelectionTool
     ) {
       return;
     }