mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-27 11:30:06 +01:00
touchpad: increase palm edge zones to 8%
Most modern touchpads are around 100mm wide, so this provides a ca 8mm edge
zone on each side. The extra 3mm should provide for more reliable palm
detection, a few touches happen to be just on the edge of the 5mm mark.
https://bugs.freedesktop.org/show_bug.cgi?id=101433
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 381cce8ddd)
This commit is contained in:
parent
401728a157
commit
d1a575c8e5
1 changed files with 3 additions and 3 deletions
|
|
@ -2278,12 +2278,12 @@ tp_init_palmdetect_edge(struct tp_dispatch *tp,
|
|||
if (width < 70.0)
|
||||
return;
|
||||
|
||||
/* palm edges are 5% of the width on each side */
|
||||
mm.x = width * 0.05;
|
||||
/* palm edges are 8% of the width on each side */
|
||||
mm.x = width * 0.08;
|
||||
edges = evdev_device_mm_to_units(device, &mm);
|
||||
tp->palm.left_edge = edges.x;
|
||||
|
||||
mm.x = width * 0.95;
|
||||
mm.x = width * 0.92;
|
||||
edges = evdev_device_mm_to_units(device, &mm);
|
||||
tp->palm.right_edge = edges.x;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue