From 09c441d397d5bf07dd819d7ade91c0428356a1f6 Mon Sep 17 00:00:00 2001 From: Rafael Marçalo Date: Sat, 26 Mar 2022 02:02:18 +0000 Subject: [fix] Horizontal scroll --- xmouseless.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmouseless.c b/xmouseless.c index b5ce68a..75d2aea 100644 --- a/xmouseless.c +++ b/xmouseless.c @@ -217,7 +217,7 @@ void handle_key(KeyCode keycode, Bool is_press) { scrollinfo.speed_y += sign * scroll_bindings[i].y; /* scroll once, workaround for scrolling not working the first time */ - int scroll_x, scroll_y = 0; + int scroll_x = 0, scroll_y = 0; if (scrollinfo.speed_x < 0) scroll_x = -1; if (scrollinfo.speed_x > 0) scroll_x = 1; if (scrollinfo.speed_y < 0) scroll_y = -1; -- cgit v1.2.3