From 156a641be65caf021b38ad83cf1514a676afbdb7 Mon Sep 17 00:00:00 2001 From: Akash Kava <39438041+ackava@users.noreply.github.com> Date: Fri, 13 Sep 2024 23:14:49 +0530 Subject: [PATCH] Zoom for multiple touch fixed --- src/basic/ZoomView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/ZoomView.tsx b/src/basic/ZoomView.tsx index efb0a6cd..ca802cb7 100644 --- a/src/basic/ZoomView.tsx +++ b/src/basic/ZoomView.tsx @@ -105,7 +105,7 @@ export default class ZoomView extends AtomControl { let { x, y, anchorX, anchorY, scale } = this.zoom; - if (ev.touches.length === 2) { + if (ev.touches.length >= 2) { ev.preventDefault(); ev.stopImmediatePropagation();