winemac: Don't generate scroll wheel events for axes with 0 delta.

This commit is contained in:
Ken Thomases 2013-08-26 20:14:00 -05:00 committed by Alexandre Julliard
parent b755674df3
commit 1b9fac3b3d
1 changed files with 8 additions and 6 deletions

View File

@ -911,9 +911,11 @@ void macdrv_mouse_scroll(HWND hwnd, const macdrv_event *event)
event->mouse_scroll.x, event->mouse_scroll.y, event->mouse_scroll.x, event->mouse_scroll.y,
event->mouse_scroll.time_ms, (GetTickCount() - event->mouse_scroll.time_ms)); event->mouse_scroll.time_ms, (GetTickCount() - event->mouse_scroll.time_ms));
if (event->mouse_scroll.y_scroll)
send_mouse_input(hwnd, event->window, MOUSEEVENTF_WHEEL | MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, send_mouse_input(hwnd, event->window, MOUSEEVENTF_WHEEL | MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE,
event->mouse_scroll.x, event->mouse_scroll.y, event->mouse_scroll.x, event->mouse_scroll.y,
event->mouse_scroll.y_scroll, FALSE, event->mouse_scroll.time_ms); event->mouse_scroll.y_scroll, FALSE, event->mouse_scroll.time_ms);
if (event->mouse_scroll.x_scroll)
send_mouse_input(hwnd, event->window, MOUSEEVENTF_HWHEEL | MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, send_mouse_input(hwnd, event->window, MOUSEEVENTF_HWHEEL | MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE,
event->mouse_scroll.x, event->mouse_scroll.y, event->mouse_scroll.x, event->mouse_scroll.y,
event->mouse_scroll.x_scroll, FALSE, event->mouse_scroll.time_ms); event->mouse_scroll.x_scroll, FALSE, event->mouse_scroll.time_ms);