Don't process drags for the non-primary finger

This commit is contained in:
Cameron Gutman
2021-06-24 23:19:06 -05:00
parent 394ce458a0
commit 86ee30e9b4

View File

@@ -160,6 +160,11 @@ public class RelativeTouchContext implements TouchContext {
return;
}
// The drag should only be processed for the primary finger
if (actionIndex != maxPointerCountInGesture - 1) {
return;
}
// Check if someone cancelled us
if (dragTimer == null) {
return;