Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Yan2019-04-16 12:15:57 -0400
committerXi Yan2019-04-16 14:30:24 -0400
commit866612c0831ea791d7b07a901e0ec2b5b876a422 (patch)
tree8a3cedee1193f50313ae8d6381b36993058188de
parentbfbff4c83c848210dc0210324cab85b42b965a4e (diff)
downloadeclipse.platform.swt-866612c0831ea791d7b07a901e0ec2b5b876a422.tar.gz
eclipse.platform.swt-866612c0831ea791d7b07a901e0ec2b5b876a422.tar.xz
eclipse.platform.swt-866612c0831ea791d7b07a901e0ec2b5b876a422.zip
Bug 545943 - [GTK4] Scrolling with the mouse wheel not working
Fix GdkEventControllerScroll flags so that scrolling with mouse works on GTK4. Tested with Snippet 7, 8, 52, 53, 59, 61, 90. Change-Id: I5a4b344e1b7ec0eef75733bdbe04649d15645b77 Signed-off-by: Xi Yan <xixiyan@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
index a724341256..558caf1ad4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -465,7 +465,7 @@ void hookEvents () {
}
OS.g_signal_connect (motionInverseController, OS.motion, enterMotionScrollAddress, MOTION_INVERSE);
- long scrollController = GTK.gtk_event_controller_scroll_new(GTK.GTK_EVENT_CONTROLLER_SCROLL_BOTH_AXES);
+ long scrollController = GTK.gtk_event_controller_scroll_new(GTK.GTK_EVENT_CONTROLLER_SCROLL_NONE);
GTK.gtk_widget_add_controller(eventHandle, scrollController);
GTK.gtk_event_controller_set_propagation_phase(scrollController, GTK.GTK_PHASE_TARGET);
OS.g_signal_connect (scrollController, OS.scroll, enterMotionScrollAddress, SCROLL);

Back to the top