Windows QPA: Fix scrolling down with mouse wheel.
Use GET_WHEEL_DELTA_WPARAM() instead of HIWORD and casting.
Fix breakage introduced by b20548f999
.
Change-Id: I11bd97d73c12d72e824e3f769e9c402975f27d48
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
parent
ea757da436
commit
827420c4c6
@ -422,7 +422,7 @@ bool QWindowsMouseHandler::translateMouseWheelEvent(QWindow *window, HWND,
|
||||
|
||||
int delta;
|
||||
if (msg.message == WM_MOUSEWHEEL || msg.message == WM_MOUSEHWHEEL)
|
||||
delta = HIWORD (msg.wParam);
|
||||
delta = GET_WHEEL_DELTA_WPARAM(msg.wParam);
|
||||
else
|
||||
delta = int(msg.wParam);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user