Skip to content

Commit

Permalink
[client] wayland: fix mouse is always scrolling up
Browse files Browse the repository at this point in the history
  • Loading branch information
neonbyte1 committed Dec 17, 2024
1 parent e25492a commit 7620666
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ Zenithal <[email protected]> (ZenithalHourlyRate)
Kamplom <[email protected]> (kamplom)
Jacob McNamee <[email protected]> (jacobmcnamee)
Marco Antonio J. Costa <[email protected]> (majcosta)
rs189 <[email protected]> (rs189)
rs189 <[email protected]> (rs189)
neonbyte1 <[email protected]> (neonbyte1)
2 changes: 1 addition & 1 deletion client/displayservers/Wayland/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?
Expand Down

0 comments on commit 7620666

Please sign in to comment.