am 44643269: Merge "Make tap events less sensitive." into jb-mr1-aah-dev

* commit '446432692a2a7e60c7f547d6c7436922eb571d8e':
  Make tap events less sensitive.
This commit is contained in:
Justin Koh
2012-11-12 10:24:21 -08:00
committed by Android Git Automerger

View File

@@ -41,6 +41,8 @@ class SimulatedTrackball {
// Where the cutoff is for determining an edge swipe
private static final float EDGE_SWIPE_THRESHOLD = 0.9f;
private static final int FLICK_MSG_ID = 313;
// TODO: Pass touch slop from the input device
private static final int TOUCH_SLOP = 30;
// The position of the previous touchpad event
private float mLastTouchpadXPosition;
@@ -95,7 +97,7 @@ class SimulatedTrackball {
mMinFlickDistanceSquared *= mMinFlickDistanceSquared;
mFlickDecay = Float.parseFloat(SystemProperties.get(
"persist.sys.vr_flick_decay", "1.3"));
mTouchSlop = ViewConfiguration.getTouchSlop();
mTouchSlop = TOUCH_SLOP;
mTouchSlopSquared = mTouchSlop * mTouchSlop;
}