Fix:修复移动端双指缩放过于灵敏的问题

This commit is contained in:
wanglin2 2023-08-02 19:49:12 +08:00
parent 49063d257b
commit f1748e7e42

View File

@ -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
}