mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 22:50:27 +01:00
touchpad: enable hysteresis based on a 0 fuzz value
If the fuzz is 0, assume we don't need hysteresis and use the wobble detection code instead. If the fuzz is non-zero, enable it by default. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ea7498ef97
commit
1b64888a22
1 changed files with 3 additions and 1 deletions
|
|
@ -3109,7 +3109,9 @@ tp_init_hysteresis(struct tp_dispatch *tp)
|
|||
|
||||
tp->hysteresis.margin.x = xmargin;
|
||||
tp->hysteresis.margin.y = ymargin;
|
||||
tp->hysteresis.enabled = false;
|
||||
tp->hysteresis.enabled = (ax->fuzz || ay->fuzz);
|
||||
if (tp->hysteresis.enabled)
|
||||
evdev_log_debug(tp->device, "hysteresis enabled\n");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue