summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-07-30 11:46:50 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-07-30 11:51:12 +1000
commit39b0bb4585106a56a51236d8e9843b2da8d745a5 (patch)
tree971b87d463a2769eac4dee45b410f31a52f48f7c /src
parent8923d18d25303354f250b4f165fa66b327b8ac7e (diff)
downloadxorg-driver-xf86-input-libinput-39b0bb4585106a56a51236d8e9843b2da8d745a5.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/xf86libinput.c4
1 files changed, 2 insertions, 2 deletions
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))