From 88163f2a2085ae859fcfbef78c7ea45e25ff96ae Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Tue, 21 Mar 2023 01:38:48 +0000 Subject: [PATCH] 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 --- .../frameworks/base/core/res/res/values/config.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tangorpro/overlay/frameworks/base/core/res/res/values/config.xml b/tangorpro/overlay/frameworks/base/core/res/res/values/config.xml index 572d514..0bdc02d 100644 --- a/tangorpro/overlay/frameworks/base/core/res/res/values/config.xml +++ b/tangorpro/overlay/frameworks/base/core/res/res/values/config.xml @@ -569,6 +569,14 @@ 3 + + 5dp + 0