Skip to content

Commit

Permalink
Always vertical mouse wheel events are getting triggered even when (#…
Browse files Browse the repository at this point in the history
…1056)

horizontal mouse wheel events are generated.

Fixes #994
  • Loading branch information
deepika-u authored Mar 6, 2024
1 parent 47db2f0 commit aa4c0f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ LRESULT WM_VSCROLL (long wParam, long lParam) {
}

LRESULT wmScrollWheel (boolean update, long wParam, long lParam, boolean horzWheel) {
LRESULT result = super.WM_MOUSEWHEEL (wParam, lParam);
LRESULT result = horzWheel ? super.WM_MOUSEHWHEEL(wParam, lParam) : super.WM_MOUSEWHEEL(wParam, lParam);
if (result != null) return result;
/*
* Translate WM_MOUSEWHEEL and WM_MOUSEHWHEEL to WM_VSCROLL or WM_HSCROLL.
Expand Down

0 comments on commit aa4c0f9

Please sign in to comment.