Fix:修复移动端双指缩放过于灵敏的问题
This commit is contained in:
parent
49063d257b
commit
f1748e7e42
@ -59,10 +59,10 @@ class TouchEvent {
|
|||||||
let cy = (touch1ClientY + touch2ClientY) / 2
|
let cy = (touch1ClientY + touch2ClientY) / 2
|
||||||
if (distance > this.doubleTouchmoveDistance) {
|
if (distance > this.doubleTouchmoveDistance) {
|
||||||
// 放大
|
// 放大
|
||||||
this.mindMap.view.enlarge(cx, cy)
|
this.mindMap.view.enlarge(cx, cy, true)
|
||||||
} else {
|
} else {
|
||||||
// 缩小
|
// 缩小
|
||||||
this.mindMap.view.narrow(cx, cy)
|
this.mindMap.view.narrow(cx, cy, true)
|
||||||
}
|
}
|
||||||
this.doubleTouchmoveDistance = distance
|
this.doubleTouchmoveDistance = distance
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user