From e888ae59e45916455fcfbfbc93f818ed129b378a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 8 Jun 2022 22:58:23 -0500 Subject: [PATCH] Ignore 3 finger tap gesture when cancelled --- app/src/main/java/com/limelight/Game.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index 17ae85c1..964c6a2f 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -1449,7 +1449,8 @@ public class Game extends Activity implements SurfaceHolder.Callback, break; case MotionEvent.ACTION_POINTER_UP: case MotionEvent.ACTION_UP: - if (event.getPointerCount() == 1) { + if (event.getPointerCount() == 1 && + (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU || (event.getFlags() & MotionEvent.FLAG_CANCELED) == 0)) { // All fingers up if (SystemClock.uptimeMillis() - threeFingerDownTime < THREE_FINGER_TAP_THRESHOLD) { // This is a 3 finger tap to bring up the keyboard