From c8f938dd3e0465ce13dcb82e2944186ea60b8830 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Fri, 17 Mar 2023 16:57:30 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=85=B3=E8=81=94=E7=BA=BF=E6=97=B6=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=BF=80=E6=B4=BB=E7=8A=B6=E6=80=81=E6=9C=AA=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E7=9A=84=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/AssociativeLine.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simple-mind-map/src/AssociativeLine.js b/simple-mind-map/src/AssociativeLine.js index c03c3a5c..0d58fc0c 100644 --- a/simple-mind-map/src/AssociativeLine.js +++ b/simple-mind-map/src/AssociativeLine.js @@ -184,12 +184,12 @@ class AssociativeLine { checkOverlapNode(x, y) { this.overlapNode = null bfsWalk(this.mindMap.renderer.root, node => { - if (node === this.creatingStartNode || this.overlapNode) { - return - } if (node.nodeData.data.isActive) { this.mindMap.renderer.setNodeActive(node, false) } + if (node === this.creatingStartNode || this.overlapNode) { + return + } let { left, top, width, height } = node let right = left + width let bottom = top + height