From 99340147b9092a5aaec997eca407282a51e1f063 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 15 Mar 2012 15:46:32 +1000 Subject: Fix inverted horizontal scroll (#46205) REL_HWHEEL has a positive increment, not a negative one like REL_WHEEL. X.Org Bug 46205 Signed-off-by: Peter Hutterer Reviewed-by: Chase Douglas --- src/evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3