Decrease the touch slop to prevent unintentional long presses
On this device, the default touch slop value of 8dp is too large. It corresponds to a physical distance of ~ 1.5mm. This results in long presses getting triggered too easily. Reduce the touch slop to 5 dp, which is about ~ 1mm, and closer to a reference device that doesn't exhibit the long-press issue. Bug: 270835406 Change-Id: I1973e7831f527f2f654661bd4917f48992c74b61 Test: use a test app for long presses
This commit is contained in:
parent
8da0f13689
commit
88163f2a20
1 changed files with 8 additions and 0 deletions
|
@ -569,6 +569,14 @@
|
|||
<item>3</item> <!-- COLOR_MODE_AUTOMATIC -->
|
||||
</integer-array>
|
||||
|
||||
<!-- Override the "touch slop" value used by ViewConfiguration.
|
||||
This prevents misclassification of gestures as long presses, by reducing the
|
||||
distance that the pointer can travel while still being treated as "stationary".
|
||||
The default value is 8dp, which is roughly 1.5mm on this device. On another
|
||||
reference device, the touch slop was estimated at ~ 1 mm. Therefore, set the
|
||||
touch slop to 8/1.5 =~ 5 dp to make it closer to the reference device. -->
|
||||
<dimen name="config_viewConfigurationTouchSlop">5dp</dimen>
|
||||
|
||||
<!-- The default volume for the notification stream -->
|
||||
<integer name="config_audio_notif_vol_default">0</integer>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue