We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21ee2ca commit c104d16Copy full SHA for c104d16
core/java/android/view/GestureDetector.java
@@ -453,7 +453,8 @@ public boolean onTouchEvent(MotionEvent ev) {
453
}
454
mVelocityTracker.addMovement(ev);
455
456
- final boolean pointerUp = action == MotionEvent.ACTION_POINTER_UP;
+ final boolean pointerUp =
457
+ (action & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_POINTER_UP;
458
final int skipIndex = pointerUp ? ev.getActionIndex() : -1;
459
460
// Determine focal point
0 commit comments