mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-29 20:40:09 +01:00
touchpad: explicitly init scroll settings
No effect, we're just initializing with the same value we did before. What is important here is the comment, the touchpad scroll threshold is in mm for touchpads providing a resolution. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
697d25e9e2
commit
ea122ce38d
1 changed files with 3 additions and 0 deletions
|
|
@ -956,6 +956,9 @@ tp_init_scroll(struct tp_dispatch *tp)
|
|||
tp->scroll.natural_scrolling_enabled = false;
|
||||
tp->device->base.config.natural_scroll = &tp->scroll.config;
|
||||
|
||||
/* In mm for touchpads with valid resolution, see tp_init_accel() */
|
||||
tp->device->scroll.threshold = 5.0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue