Skip to content

Commit 7c981c8

Browse files
committed
fix: preventDefault on context menu
1 parent af3550e commit 7c981c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mouse.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,7 @@ export default function (mind: MindElixirInstance) {
7878
if (e.button !== 2) return
7979
dragMoveHelper.clear()
8080
})
81+
mind.map.addEventListener('contextmenu', e => {
82+
e.preventDefault()
83+
})
8184
}

0 commit comments

Comments
 (0)