mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] spice: filter out events that have < 2 axis
This prevents the mouse wheel from being treated as a cursor movement
This commit is contained in:
parent
2788394631
commit
6030d2f189
@ -1305,6 +1305,10 @@ int eventFilter(void * userdata, SDL_Event * event)
|
||||
}
|
||||
}
|
||||
|
||||
/* filter out scroll wheel and other events */
|
||||
if (count < 2)
|
||||
break;
|
||||
|
||||
/* filter out duplicate events */
|
||||
static Time prev_time = 0;
|
||||
static double prev_axis[2] = {0};
|
||||
|
Loading…
Reference in New Issue
Block a user