From 25ecde894829cb6f3a3063baf0cc4d6c74f9b3c0 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Tue, 11 Apr 2023 22:23:26 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=E4=BF=AE=E5=A4=8D=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=8F=B3=E9=94=AE=E5=92=8C=E7=94=BB=E5=B8=83=E5=8F=B3=E9=94=AE?= =?UTF-8?q?=E7=9A=84=E5=86=B2=E7=AA=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/Node.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simple-mind-map/src/Node.js b/simple-mind-map/src/Node.js index fa208f11..8f1b8267 100644 --- a/simple-mind-map/src/Node.js +++ b/simple-mind-map/src/Node.js @@ -339,6 +339,9 @@ class Node { this.active(e) }) this.group.on('mousedown', e => { + if (this.isRoot && e.which === 3) { + e.stopPropagation() + } if (!this.isRoot) { e.stopPropagation() }