diff --git a/src/basic/PinchZoomView.tsx b/src/basic/PinchZoomView.tsx index ff15b7d0..75a70992 100644 --- a/src/basic/PinchZoomView.tsx +++ b/src/basic/PinchZoomView.tsx @@ -93,8 +93,8 @@ export default class PinchZoomView extends AtomControl { this.bindEvent(scrollView, "touchstart", (evs: TouchEvent) => { previous = center(evs); - evs.preventDefault(); - evs.stopImmediatePropagation?.(); + // evs.preventDefault(); + // evs.stopImmediatePropagation?.(); // const start = this.zoom.scale; @@ -121,6 +121,10 @@ export default class PinchZoomView extends AtomControl { if (previousDistance === newScale) { return; } + + ev.preventDefault(); + ev.stopImmediatePropagation(); + scale += newScale - previousDistance; previousDistance = newScale; this.updateZoom({