Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33f27a82 authored by Zachary Kuznia's avatar Zachary Kuznia Committed by android-build-merger
Browse files

Merge "Increase threshold for gesture detection timeout" into nyc-dev am: 51f0dd6b

am: bd72d129

* commit 'bd72d129':
  Increase threshold for gesture detection timeout
parents 77b0a8aa bd72d129
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -121,9 +121,9 @@ class AccessibilityGestureDetector extends GestureDetector.SimpleOnGestureListen
    // movement when gesturing, and touch exploring.  Based on user testing,
    // movement when gesturing, and touch exploring.  Based on user testing,
    // all gestures started with the initial movement taking less than 100ms.
    // all gestures started with the initial movement taking less than 100ms.
    // When touch exploring, the first movement almost always takes longer than
    // 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.
    // 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
    // Time threshold used to determine if a gesture should be cancelled.  If
    // the finger pauses for longer than this delay, the ongoing gesture is
    // the finger pauses for longer than this delay, the ongoing gesture is