Fix horizontal scrolling on Windows when ALT + mouse wheel is used
Task-number: QTBUG-30833 Change-Id: I366d2979060ba67f745f7c783dee8d7669ebdf57 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
8094bb537a
commit
79d35b331a
@ -364,7 +364,7 @@ bool QWindowsMouseHandler::translateMouseWheelEvent(QWindow *window, HWND,
|
||||
delta = (int) msg.wParam;
|
||||
|
||||
Qt::Orientation orientation = (msg.message == WM_MOUSEHWHEEL
|
||||
|| (buttons & Qt::AltModifier)) ?
|
||||
|| (mods & Qt::AltModifier)) ?
|
||||
Qt::Horizontal : Qt::Vertical;
|
||||
|
||||
// according to the MSDN documentation on WM_MOUSEHWHEEL:
|
||||
|
Loading…
Reference in New Issue
Block a user