diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-04-28 12:23:18 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-04-29 09:52:31 +1000 |
commit | 41cf9212d02c1d2adca0e85702a1f0faba9e6b37 (patch) | |
tree | 6c5ba17e64415e291667959b7289c337ab6534f4 | |
parent | 75368052b57aa07252e26642315bcf9a0b2e78eb (diff) |
Map REL_DIAL to horizontal scrolling (#73105)
This was the original behavior introduced in
f77410e1f97d394e98c854fd174f712666b0544c and stayed that way until smooth
scrolling erroneously added it as vertical axis in
b450efdf95999cad08de23ce069f04a66bdae24b. Revert to horizontal scrolling to
restore the previous behaviour - which unbreaks scrolling on Microsoft mice.
This effectively reverts 54a3120e339e55fc4721543abb15692c3e9ede09 too.
X.Org Bug 73105 <http://bugs.freedesktop.org/show_bug.cgi?id=73105>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/evdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/evdev.c b/src/evdev.c index ed84f0f..6175015 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1574,8 +1574,8 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device, int want_scroll_axes) NO_AXIS_LIMITS, NO_AXIS_LIMITS, 0, 0, 0, Relative); SetScrollValuator(device, pEvdev->rel_axis_map[idx], - SCROLL_TYPE_VERTICAL, - -pEvdev->smoothScroll.dial_delta, + SCROLL_TYPE_HORIZONTAL, + pEvdev->smoothScroll.dial_delta, SCROLL_FLAG_NONE); } } @@ -1652,8 +1652,8 @@ EvdevSetScrollValuators(DeviceIntPtr device) axnum = pEvdev->rel_axis_map[REL_DIAL]; if (axnum != -1) { - SetScrollValuator(device, axnum, SCROLL_TYPE_VERTICAL, - -pEvdev->smoothScroll.dial_delta, + SetScrollValuator(device, axnum, SCROLL_TYPE_HORIZONTAL, + pEvdev->smoothScroll.dial_delta, SCROLL_FLAG_NONE); } |