This is merely 'button scrolling' now, only the original implementation was
middle button only. And to avoid confusing with the middle button emulation,
drop "MIDDLE" from the define.

Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 src/evdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/evdev.c b/src/evdev.c
index b1d2db2..1af29a4 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -48,7 +48,7 @@
 #endif
 
 #define DEFAULT_WHEEL_CLICK_ANGLE 15
-#define DEFAULT_MIDDLE_BUTTON_SCROLL_TIMEOUT ms2us(200)
+#define DEFAULT_BUTTON_SCROLL_TIMEOUT ms2us(200)
 
 enum evdev_key_type {
        EVDEV_KEY_TYPE_NONE,
@@ -247,7 +247,7 @@ evdev_button_scroll_button(struct evdev_device *device,
                }
 
                libinput_timer_set_flags(&device->scroll.timer,
-                                        time + 
DEFAULT_MIDDLE_BUTTON_SCROLL_TIMEOUT,
+                                        time + DEFAULT_BUTTON_SCROLL_TIMEOUT,
                                         flags);
                device->scroll.button_down_time = time;
        } else {
-- 
2.9.3

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to