mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-23 23:30:32 +01:00
evdev: don't ignore REL_HWHEEL values over 1
Matching patch for REL_WHEEL is 09a3770961, not sure why I didn't
do both at the same time.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
341eeec611
commit
5d8cb73342
1 changed files with 5 additions and 14 deletions
19
src/evdev.c
19
src/evdev.c
|
|
@ -549,21 +549,12 @@ evdev_process_relative(struct evdev_device *device,
|
|||
break;
|
||||
case REL_HWHEEL:
|
||||
evdev_flush_pending_event(device, time);
|
||||
switch (e->value) {
|
||||
case -1:
|
||||
/* Scroll left */
|
||||
case 1:
|
||||
/* Scroll right */
|
||||
pointer_notify_axis(
|
||||
base,
|
||||
time,
|
||||
LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL,
|
||||
e->value * DEFAULT_AXIS_STEP_DISTANCE);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
pointer_notify_axis(
|
||||
base,
|
||||
time,
|
||||
LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL,
|
||||
e->value * DEFAULT_AXIS_STEP_DISTANCE);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue