From 02bfa904174ffab505c03f8293fce34fddbfaaa7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 10 Nov 2020 15:09:51 -0600 Subject: [PATCH] Ignore movement from cancelled touches --- .../limelight/binding/input/touch/RelativeTouchContext.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/limelight/binding/input/touch/RelativeTouchContext.java b/app/src/main/java/com/limelight/binding/input/touch/RelativeTouchContext.java index be0d8a1b..9b505486 100644 --- a/app/src/main/java/com/limelight/binding/input/touch/RelativeTouchContext.java +++ b/app/src/main/java/com/limelight/binding/input/touch/RelativeTouchContext.java @@ -186,6 +186,10 @@ public class RelativeTouchContext implements TouchContext { @Override public boolean touchMoveEvent(int eventX, int eventY) { + if (cancelled) { + return true; + } + if (eventX != lastTouchX || eventY != lastTouchY) { // We only send moves and drags for the primary touch point