diff --git a/client/src/main.c b/client/src/main.c index 41900524..dd90f0ee 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1332,8 +1332,8 @@ int eventFilter(void * userdata, SDL_Event * event) break; if ( - !spice_mouse_press (event->wheel.y == 1 ? 4 : 5) || - !spice_mouse_release(event->wheel.y == 1 ? 4 : 5) + !spice_mouse_press (event->wheel.y > 0 ? 4 : 5) || + !spice_mouse_release(event->wheel.y > 0 ? 4 : 5) ) { DEBUG_ERROR("SDL_MOUSEWHEEL: failed to send messages");