@@ -100,6 +100,9 @@ public class TouchExplorer {
100100 // Temporary array for storing pointer IDs.
101101 private final int [] mTempPointerIds = new int [MAX_POINTER_COUNT ];
102102
103+ // Timeout before trying to decide what the user is trying to do.
104+ private final int mDetermineUserIntentTimeout ;
105+
103106 // Timeout within which we try to detect a tap.
104107 private final int mTapTimeout ;
105108
@@ -199,6 +202,7 @@ public TouchExplorer(InputFilter inputFilter, Context context,
199202 mInjectedPointerTracker = new InjectedPointerTracker ();
200203 mInputFilter = inputFilter ;
201204 mTapTimeout = ViewConfiguration .getTapTimeout ();
205+ mDetermineUserIntentTimeout = (int ) (mTapTimeout * 1.5f );
202206 mDoubleTapTimeout = ViewConfiguration .getDoubleTapTimeout ();
203207 mTouchSlop = ViewConfiguration .get (context ).getScaledTouchSlop ();
204208 mDoubleTapSlop = ViewConfiguration .get (context ).getScaledDoubleTapSlop ();
@@ -1332,7 +1336,7 @@ public void post(MotionEvent prototype, int pointerIdBits, int policyFlags) {
13321336 mPrototype = MotionEvent .obtain (prototype );
13331337 mPointerIdBits = pointerIdBits ;
13341338 mPolicyFlags = policyFlags ;
1335- mHandler .postDelayed (this , mTapTimeout );
1339+ mHandler .postDelayed (this , mDetermineUserIntentTimeout );
13361340 }
13371341
13381342 public float getX () {
0 commit comments