Browse Source

fix: prevent multiple context menus

Konstantinos Kaloutas 3 năm trước cách đây
mục cha
commit
c33fc8a60e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      tldraw/packages/core/src/lib/TLApp/TLApp.ts

+ 1 - 0
tldraw/packages/core/src/lib/TLApp/TLApp.ts

@@ -1035,6 +1035,7 @@ export class TLApp<
 
     // Switch to select on right click to enable contextMenu state
     if (e.button === 2 && !this.editingShape) {
+      e.preventDefault()
       this.transition('select')
       return
     }