소스 검색

fix: prevent multiple context menus

Konstantinos Kaloutas 2 년 전
부모
커밋
c33fc8a60e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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
     }