From 055481187d44b10ba220398a1ca46f4854fd76ee Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 23 Jan 2019 09:01:24 +1000 Subject: Upgrade the default scroll distance to 120 This is just a number, to be used as divider and shouldn't have any effect in correctly written clients. With the high-res scrolling coming up however, we have a few devices where the dist cannot be expressed as an integer fraction of 15, so let's up it to 120 because we know all hardware wheels have to be an integer fraction of that that, thanks to Microsoft's API requirements. Signed-off-by: Peter Hutterer --- src/xf86libinput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xf86libinput.c b/src/xf86libinput.c index 103e0a4..ffe09be 100644 --- a/src/xf86libinput.c +++ b/src/xf86libinput.c @@ -3415,8 +3415,8 @@ xf86libinput_pre_init(InputDriverPtr drv, * affect touchpad scroll speed. For wheels it doesn't matter as * we're using the discrete value only. */ - driver_data->scroll.v.dist = 15; - driver_data->scroll.h.dist = 15; + driver_data->scroll.v.dist = 120; + driver_data->scroll.h.dist = 120; if (!is_subdevice) { if (libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_POINTER)) -- cgit v1.2.3