From f1748e7e4246d70397b01633a1c18b0b7d2955e5 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Wed, 2 Aug 2023 19:49:12 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E5=8F=8C=E6=8C=87=E7=BC=A9=E6=94=BE=E8=BF=87?= =?UTF-8?q?=E4=BA=8E=E7=81=B5=E6=95=8F=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple-mind-map/src/plugins/TouchEvent.js b/simple-mind-map/src/plugins/TouchEvent.js index 2d4f78d1..ea8681b4 100644 --- a/simple-mind-map/src/plugins/TouchEvent.js +++ b/simple-mind-map/src/plugins/TouchEvent.js @@ -59,10 +59,10 @@ class TouchEvent { let cy = (touch1ClientY + touch2ClientY) / 2 if (distance > this.doubleTouchmoveDistance) { // 放大 - this.mindMap.view.enlarge(cx, cy) + this.mindMap.view.enlarge(cx, cy, true) } else { // 缩小 - this.mindMap.view.narrow(cx, cy) + this.mindMap.view.narrow(cx, cy, true) } this.doubleTouchmoveDistance = distance }