From ea122ce38da9fcc58dab7963a9cb681f94f8be7a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 10 Nov 2014 09:24:37 +1000 Subject: [PATCH] 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 Reviewed-by: Hans de Goede --- src/evdev-mt-touchpad.c | 3 +++ 1 file changed, 3 insertions(+) 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; }