mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-04 01:34:13 +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:
@@ -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};
|
||||
|
Reference in New Issue
Block a user