mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Map REL_DIAL to horizontal scrolling (#73105)
This was the original behavior introduced inf77410e1f9and stayed that way until smooth scrolling erroneously added it as vertical axis inb450efdf95. Revert to horizontal scrolling to restore the previous behaviour - which unbreaks scrolling on Microsoft mice. This effectively reverts54a3120e33too. X.Org Bug 73105 <http://bugs.freedesktop.org/show_bug.cgi?id=73105> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> (cherry picked from commit16c85cbeac) Conflicts: src/evdev.c
This commit is contained in:
@@ -1553,7 +1553,7 @@ 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, -1.0,
|
||||
SCROLL_TYPE_HORIZONTAL, 1.0,
|
||||
SCROLL_FLAG_NONE);
|
||||
}
|
||||
}
|
||||
@@ -1696,7 +1696,7 @@ EvdevAddRelValuatorClass(DeviceIntPtr device)
|
||||
if (axis == REL_WHEEL)
|
||||
SetScrollValuator(device, axnum, SCROLL_TYPE_VERTICAL, -1.0, SCROLL_FLAG_PREFERRED);
|
||||
else if (axis == REL_DIAL)
|
||||
SetScrollValuator(device, axnum, SCROLL_TYPE_VERTICAL, -1.0, SCROLL_FLAG_NONE);
|
||||
SetScrollValuator(device, axnum, SCROLL_TYPE_HORIZONTAL, 1.0, SCROLL_FLAG_NONE);
|
||||
else if (axis == REL_HWHEEL)
|
||||
SetScrollValuator(device, axnum, SCROLL_TYPE_HORIZONTAL, 1.0, SCROLL_FLAG_NONE);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user