mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-08 19:50:18 +01:00
filter: don't allow an accel factor of 0 on the flat profile
Leave a narrow gap so the mouse moves excruciatingly slow instead of not moving at all. This allows to recover from overexcited mouse speed slider movements. https://bugs.freedesktop.org/show_bug.cgi?id=102501 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c44c028678
commit
d92d8554c3
1 changed files with 1 additions and 1 deletions
|
|
@ -1342,7 +1342,7 @@ accelerator_set_speed_flat(struct motion_filter *filter,
|
|||
* skipping over ever second pixel at 200% speed.
|
||||
*/
|
||||
|
||||
accel_filter->factor = 1 + speed_adjustment;
|
||||
accel_filter->factor = max(0.005, 1 + speed_adjustment);
|
||||
filter->speed_adjustment = speed_adjustment;
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue