From 39b0bb4585106a56a51236d8e9843b2da8d745a5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 30 Jul 2019 11:46:50 +1000 Subject: Revert "Upgrade the default scroll distance to 120" This was part of the high-resolution wheel work that was factored out ahead of time. Problem is: this breaks scroll button emulation in the server as we use the distance to determine when we click buttons 4-7. Before: movement of 15 normalized pixel units on a touchpad - one click. Now: 120 of those units. So that's a bit less than ideal. The change to 120 can be done, but needs the corresponding handling in the axis distance calculations. Fixes #24 This reverts commit 055481187d44b10ba220398a1ca46f4854fd76ee. --- src/xf86libinput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/xf86libinput.c b/src/xf86libinput.c index 5792224..2dddfa9 100644 --- a/src/xf86libinput.c +++ b/src/xf86libinput.c @@ -3419,8 +3419,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 = 120; - driver_data->scroll.h.dist = 120; + driver_data->scroll.v.dist = 15; + driver_data->scroll.h.dist = 15; if (!is_subdevice) { if (libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_POINTER)) -- cgit v1.2.1