summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
authorMasanori Ogino <ogino.masanori@sharp.co.jp>2011-01-14 13:24:20 +0900
committerMasanori Ogino <ogino.masanori@sharp.co.jp>2011-02-07 17:05:45 +0900
commit40209532bff0f83cbbdf408bb3f6e8142e7b02cd (patch)
tree95e0b62d40c02eed9176d0da065c1db630dcf597 /libs/hwui/ProgramCache.cpp
parenta220a2979937700024662be0f8fc166ca65506ed (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