mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 00:20:08 +01:00
touchpad: don't do speed-based thumb detection on single-touch or semi-mts
Because life is too short for this https://bugs.freedesktop.org/show_bug.cgi?id=105265 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4eb420b16e
commit
39b806089c
1 changed files with 4 additions and 0 deletions
|
|
@ -92,6 +92,10 @@ tp_calculate_motion_speed(struct tp_dispatch *tp, struct tp_touch *t)
|
|||
double distance;
|
||||
double speed;
|
||||
|
||||
/* Don't do this on single-touch or semi-mt devices */
|
||||
if (!tp->has_mt || tp->semi_mt)
|
||||
return;
|
||||
|
||||
/* This doesn't kick in until we have at least 4 events in the
|
||||
* motion history. As a side-effect, this automatically handles the
|
||||
* 2fg scroll where a finger is down and moving fast before the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue