mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-24 20:07:43 +08:00
Fix:修复移动端双指缩放过于灵敏的问题
This commit is contained in:
parent
49063d257b
commit
f1748e7e42
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user