From 9002a152c4a504ea404fab528c9e7d4ef3cb3247 Mon Sep 17 00:00:00 2001 From: Zachary Kuznia Date: Tue, 8 Mar 2016 16:08:46 -0800 Subject: [PATCH] Increase threshold for gesture detection timeout After a user study, it appears a little extra slack for gesture recognition is a good idea. Change-Id: I8ff90c715a77c985e8bab671c3782bc8679cc564 --- .../server/accessibility/AccessibilityGestureDetector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/accessibility/java/com/android/server/accessibility/AccessibilityGestureDetector.java b/services/accessibility/java/com/android/server/accessibility/AccessibilityGestureDetector.java index ad70853f13ba4..284c30970cad1 100644 --- a/services/accessibility/java/com/android/server/accessibility/AccessibilityGestureDetector.java +++ b/services/accessibility/java/com/android/server/accessibility/AccessibilityGestureDetector.java @@ -121,9 +121,9 @@ class AccessibilityGestureDetector extends GestureDetector.SimpleOnGestureListen // movement when gesturing, and touch exploring. Based on user testing, // all gestures started with the initial movement taking less than 100ms. // When touch exploring, the first movement almost always takes longer than - // 200ms. From this data, 150ms seems the best value to decide what + // 200ms. From this data, 200ms seems the best value to decide what // kind of interaction it is. - private static final long CANCEL_ON_PAUSE_THRESHOLD_NOT_STARTED_MS = 150; + private static final long CANCEL_ON_PAUSE_THRESHOLD_NOT_STARTED_MS = 200; // Time threshold used to determine if a gesture should be cancelled. If // the finger pauses for longer than this delay, the ongoing gesture is