From 762066609eb340b73eb2c5b54894460c9c9924cb Mon Sep 17 00:00:00 2001 From: neonbyte1 <186292855+neonbyte1@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:45:40 +0100 Subject: [PATCH] [client] wayland: fix mouse is always scrolling up --- AUTHORS | 3 ++- client/displayservers/Wayland/input.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index f1e205ab..8dcb1e6b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -70,4 +70,5 @@ Zenithal (ZenithalHourlyRate) Kamplom <6284968128@protonmail.ch> (kamplom) Jacob McNamee (jacobmcnamee) Marco Antonio J. Costa (majcosta) -rs189 <35667100+rs189@users.noreply.github.com> (rs189) \ No newline at end of file +rs189 <35667100+rs189@users.noreply.github.com> (rs189) +neonbyte1 <186292855+neonbyte1@users.noreply.github.com> (neonbyte1) diff --git a/client/displayservers/Wayland/input.c b/client/displayservers/Wayland/input.c index 5d457d9b..d2a5afa8 100644 --- a/client/displayservers/Wayland/input.c +++ b/client/displayservers/Wayland/input.c @@ -88,7 +88,7 @@ static void pointerLeaveHandler(void * data, struct wl_pointer * pointer, static void pointerAxisHandler(void * data, struct wl_pointer * pointer, uint32_t serial, uint32_t axis, wl_fixed_t value) { - if (axis != WL_POINTER_AXIS_VERTICAL_SCROLL) + if (axis != WL_POINTER_AXIS_VERTICAL_SCROLL && value != 0) return; int button = value > 0 ?