Skip to content

Commit

Permalink
Fixed 3+ fingers touch issue
Browse files Browse the repository at this point in the history
  • Loading branch information
moisoni97 committed Sep 9, 2021
1 parent d1f981a commit 2849801
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ public boolean onDoubleTap(MotionEvent e) {
@Override
public boolean onTouch(View v, MotionEvent ev) {

if (mAnimatingZoomEnding || ev.getPointerCount() > 2) return true;
if (mAnimatingZoomEnding || ev.getPointerCount() > 2) {
if (ev.getPointerCount() > 2) {
mEndingZoomAction.run();
}
return true;
}

mScaleGestureDetector.onTouchEvent(ev);
mGestureDetector.onTouchEvent(ev);
Expand Down

0 comments on commit 2849801

Please sign in to comment.