From aa4c0f9f723f08bd40820d4f67e553192dc377b9 Mon Sep 17 00:00:00 2001 From: Deepika Udayagiri <46807064+deepika-u@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:39:41 +0530 Subject: [PATCH] Always vertical mouse wheel events are getting triggered even when (#1056) horizontal mouse wheel events are generated. Fixes https://github.com/eclipse-platform/eclipse.platform.swt/issues/994 --- .../Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java index 6570d9df97d..2b28e5aee3c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java @@ -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.