mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:33:40 +00:00
[client] wayland: fix mouse is always scrolling up
This commit is contained in:
parent
e25492a3a3
commit
762066609e
3
AUTHORS
3
AUTHORS
@ -70,4 +70,5 @@ Zenithal <i@zenithal.me> (ZenithalHourlyRate)
|
||||
Kamplom <6284968128@protonmail.ch> (kamplom)
|
||||
Jacob McNamee <jacob@jacobmcnamee.com> (jacobmcnamee)
|
||||
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)
|
||||
|
@ -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 ?
|
||||
|
Loading…
Reference in New Issue
Block a user