Skip to content

Commit 6022d30

Browse files
committed
fix: prevent context menu trigger during active node editing or interaction states
1 parent 78ebf15 commit 6022d30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mouse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ export default function (mind: MindElixirInstance) {
348348
// Delay here to wait and see if the user is actually panning.
349349
// If so, cancel the context menu.
350350
if (mind.panHelper.moved) return
351+
if (mind.ptState !== State.Idle && mind.ptState !== State.Pan) return
351352
const target = e.target as HTMLElement
352353
if (isTopic(target) && !target.classList.contains('selected')) {
353354
mind.selectNode(target)

0 commit comments

Comments
 (0)