[client] wayland: fix mouse is always scrolling up

This commit is contained in:
neonbyte1 2024-12-17 15:45:40 +01:00
parent e25492a3a3
commit 762066609e
No known key found for this signature in database
GPG Key ID: 51F6969EBB35C903
2 changed files with 3 additions and 2 deletions

View File

@ -71,3 +71,4 @@ Kamplom <6284968128@protonmail.ch> (kamplom)
Jacob McNamee <jacob@jacobmcnamee.com> (jacobmcnamee) Jacob McNamee <jacob@jacobmcnamee.com> (jacobmcnamee)
Marco Antonio J. Costa <marco.antonio.costa@gmail.com> (majcosta) Marco Antonio J. Costa <marco.antonio.costa@gmail.com> (majcosta)
rs189 <35667100+rs189@users.noreply.github.com> (rs189) rs189 <35667100+rs189@users.noreply.github.com> (rs189)
neonbyte1 <186292855+neonbyte1@users.noreply.github.com> (neonbyte1)

View File

@ -88,7 +88,7 @@ static void pointerLeaveHandler(void * data, struct wl_pointer * pointer,
static void pointerAxisHandler(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) 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; return;
int button = value > 0 ? int button = value > 0 ?