From 86ee30e9b4da4b1a812831bc012ce2f943b73777 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 24 Jun 2021 23:19:06 -0500 Subject: [PATCH] Don't process drags for the non-primary finger --- .../limelight/binding/input/touch/RelativeTouchContext.java | 5 +++++ 1 file changed, 5 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 cf3871db..794f2e68 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 @@ -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;