mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 21:43:40 +00:00
[client] wayland: fix mouse is always scrolling up
This commit is contained in:
parent
e25492a3a3
commit
762066609e
1
AUTHORS
1
AUTHORS
@ -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)
|
||||||
|
@ -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 ?
|
||||||
|
Loading…
Reference in New Issue
Block a user