diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-11-10 09:24:37 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-11-11 10:00:56 +1000 |
commit | ea122ce38da9fcc58dab7963a9cb681f94f8be7a (patch) | |
tree | a63fe7e6d6439b7ff53393e147ad83d235072d90 /src | |
parent | 697d25e9e224e350b7e0de00fdee2535d981993b (diff) | |
download | libinput-ea122ce38da9fcc58dab7963a9cb681f94f8be7a.tar.gz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/evdev-mt-touchpad.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 3d8f414b..bbad713c 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -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; } |