diff options
author | Masanori Ogino <ogino.masanori@sharp.co.jp> | 2011-01-14 13:24:20 +0900 |
---|---|---|
committer | Masanori Ogino <ogino.masanori@sharp.co.jp> | 2011-02-07 17:05:45 +0900 |
commit | 40209532bff0f83cbbdf408bb3f6e8142e7b02cd (patch) | |
tree | 95e0b62d40c02eed9176d0da065c1db630dcf597 /libs/hwui/ProgramCache.cpp | |
parent | a220a2979937700024662be0f8fc166ca65506ed (diff) |
Adjust mBiggerTouchSlopSquare to the suitable value
If the scaling factor is larger than 1.0 (i.e. 1.5),
then mTouchSlopSquare(576) is bigger than mBiggerTouchSlopSquare(400).
The double tap condition should be bigger than a single tap's one.
This causes the fail of the following CTS test cases in the device has
over 240 density.
- android.view.cts.GestureDetectorTest
* testOnTouchEvent
- android.view.cts.GestureDetector_SimpleOnGestureListenerTest
* testSimpleOnGestureListener
To fix this issue, I'll add a new public method
ViewConfiguration#getScaledLargeTouchSlop() then the value returned
from that method is used as a slop area of mLargeTouchSlop.
Change-Id: I0e61c13670e1300be1ccf45a89ef89410496fb48
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions