mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-11 03:30:31 +01:00
evdev: avoid usage of bogus BTN_FORWARD name
Signed-off-by: Eduardo Cruz <eduardo.cruz@kdemail.net>
This commit is contained in:
parent
f2d110dfc5
commit
f5c20fe6b3
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ evdev_button_scroll_button(struct evdev_device *device,
|
|||
}
|
||||
|
||||
if (is_press) {
|
||||
if (device->scroll.button < BTN_FORWARD) {
|
||||
if (device->scroll.button < BTN_MOUSE + 5) {
|
||||
/* For mouse buttons 1-5 (0x110 to 0x114) we apply a timeout before scrolling
|
||||
* since the button could also be used for regular clicking. */
|
||||
enum timer_flags flags = TIMER_FLAG_NONE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue