summaryrefslogtreecommitdiffabout
authorPeter Hutterer <peter.hutterer@who-t.net>2012-03-15 05:46:32 (GMT)
committer Peter Hutterer <peter.hutterer@who-t.net>2012-03-15 21:11:30 (GMT)
commit99340147b9092a5aaec997eca407282a51e1f063 (patch) (side-by-side diff)
tree8af1139c9c44eebebc6f0ba412431827ac390532
parent76b1d58a9791257fa8b4e6d3322fcb082c86b18a (diff)
downloadxf86-input-evdev-master.zip
xf86-input-evdev-master.tar.gz
xf86-input-evdev-master.tar.bz2
Fix inverted horizontal scroll (#46205)HEADmaster
REL_HWHEEL has a positive increment, not a negative one like REL_WHEEL. X.Org Bug 46205 <http://bugs.freedesktop.org/show_bug.cgi?id=46205> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index d540b87..8cf630c 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1600,7 +1600,7 @@ EvdevAddRelValuatorClass(DeviceIntPtr device)
else if (axis == REL_DIAL)
SetScrollValuator(device, axnum, SCROLL_TYPE_VERTICAL, -1.0, SCROLL_FLAG_NONE);
else if (axis == REL_HWHEEL)
- SetScrollValuator(device, axnum, SCROLL_TYPE_HORIZONTAL, -1.0, SCROLL_FLAG_NONE);
+ SetScrollValuator(device, axnum, SCROLL_TYPE_HORIZONTAL, 1.0, SCROLL_FLAG_NONE);
#endif
}