[Wayland-bugs] [Bug 98881] Mouse wheel tilt scroll events are reported as wheel scroll events
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Nov 27 21:12:02 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=98881
Bug ID: 98881
Summary: Mouse wheel tilt scroll events are reported as wheel
scroll events
Product: Wayland
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: medium
Component: libinput
Assignee: wayland-bugs at lists.freedesktop.org
Reporter: benwolsieffer at gmail.com
As discussed in bug #92772, libinput reports horizontal scroll events that are
caused by tilting a vertical scroll wheel as normal wheel events. This causes
them to be affected by the MOUSE_WHEEL_CLICK_[ANGLE|COUNT][_HORIZONTAL] udev
properties, which doesn't make sense because "click angle" doesn't make sense
for a tilt event.
The solution seems to be to create a new pointer axis source, possibly
LIBINPUT_POINTER_AXIS_SOURCE_WHEEL_TILT. The issue then becomes identifying
which devices have tilting vertical wheels and which ones have real horizontal
scroll wheels.
The Linux kernel reports wheel tilts as REL_HWHEEL events, which is the same
type of event reported for real horizontal scroll wheels. This means that
another method must be used to distinguish between the event types.
A possible solution is to use the existence of the
MOUSE_WHEEL_CLICK_[ANGLE|COUNT]_HORIZONTAL udev properties to determine whether
a mouse has a real horizontal scroll wheel. Most mice do not have horizontal
scroll wheels, so if those properties are missing, libinput could assume than
any horizontal scroll events were caused by tilting the vertical wheel. If
either property existed, libinput could report that the mouse had a horizontal
scroll wheel.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20161127/f813f59f/attachment.html>
More information about the wayland-bugs
mailing list