diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-01-23 09:01:24 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-02-12 15:40:53 +1000 |
commit | 055481187d44b10ba220398a1ca46f4854fd76ee (patch) | |
tree | 63848220fb701dd68ccc1a25954b47fe4c653671 | |
parent | 5a925eaa84b31c5857969342802018cb5803475a (diff) |
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 <peter.hutterer@who-t.net>
-rw-r--r-- | src/xf86libinput.c | 4 |
1 files 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)) |