Skip to content

Commit

Permalink
ignore multitouch gestures - this fixes two finger zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
butesa committed Sep 30, 2023
1 parent 592302d commit 67ea527
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jquery.detect_swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
isMoving = true;
this.addEventListener('touchmove', onTouchMove, false);
this.addEventListener('touchend', onTouchEnd, false);
} else {
// Ignore move & end events if more than one touch
this.removeEventListener('touchmove', onTouchMove);
this.removeEventListener('touchend', onTouchEnd);
}
}

Expand Down

0 comments on commit 67ea527

Please sign in to comment.