Skip to content

Commit

Permalink
Zoom for multiple touch fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Sep 13, 2024
1 parent 4cab83a commit 156a641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic/ZoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 156a641

Please sign in to comment.