From 28a4be06319faca6f8a5dbac555f4a311496f4b4 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Mon, 3 Jul 2023 22:39:47 +0800 Subject: [PATCH] =?UTF-8?q?Fix:TouchEvent=E6=8F=92=E4=BB=B6=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E6=B4=BE=E5=8F=91click=E4=BA=8B=E4=BB=B6,=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E7=A7=BB=E5=8A=A8=E7=AB=AF=E7=82=B9=E5=87=BB=E8=B6=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E4=BC=9A=E6=89=93=E5=BC=80=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=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/plugins/TouchEvent.js | 3 ++- web/public/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/simple-mind-map/src/plugins/TouchEvent.js b/simple-mind-map/src/plugins/TouchEvent.js index 1cb7ec70..5afc1f04 100644 --- a/simple-mind-map/src/plugins/TouchEvent.js +++ b/simple-mind-map/src/plugins/TouchEvent.js @@ -86,7 +86,8 @@ class TouchEvent { this.clickNum = 0 this.dispatchMouseEvent('dblclick', ev.target, ev) } else { - this.dispatchMouseEvent('click', ev.target, ev) + // 点击事件应该不用模拟 + // this.dispatchMouseEvent('click', ev.target, ev) } } this.touchesNum = 0 diff --git a/web/public/index.html b/web/public/index.html index 294e768a..a5e6d6ba 100644 --- a/web/public/index.html +++ b/web/public/index.html @@ -5,7 +5,7 @@ -