瀏覽代碼

fix(whiteboard): reverting contextMenu transitioning event

Peng Xiao 3 年之前
父節點
當前提交
2b32f77809
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      tldraw/packages/core/src/lib/tools/TLSelectTool/states/IdleState.ts

+ 1 - 2
tldraw/packages/core/src/lib/tools/TLSelectTool/states/IdleState.ts

@@ -47,8 +47,7 @@ export class IdleState<
     } = this.app
     } = this.app
 
 
     if (event.button === 2) {
     if (event.button === 2) {
-      // relies on @radix-ui/react-context-menu Root's onOpenChange now
-      // this.tool.transition('contextMenu', info)
+      this.tool.transition('contextMenu', info)
       return
       return
     }
     }