aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2014-01-08 02:28:49 (EST)
committerGerrit Code Review @ Eclipse.org2014-01-13 04:54:03 (EST)
commita569b2ca51ec2491f98aef4ff4480fbb0c0dd460 (patch)
treefe6610e8150bf929c097de4109138c1532b6b89e
parent35766677cceae7cf0d45e8bb1ece106a18bc7466 (diff)
downloadeclipse.platform.swt-a569b2ca51ec2491f98aef4ff4480fbb0c0dd460.zip
eclipse.platform.swt-a569b2ca51ec2491f98aef4ff4480fbb0c0dd460.tar.gz
eclipse.platform.swt-a569b2ca51ec2491f98aef4ff4480fbb0c0dd460.tar.bz2
Bug 423012 - Ctrl + Mouse scroll works opposite refs/changes/60/20360/2
Change-Id: I880fec16d3065b4081bf9df598e055a55d186b1a Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java4
1 files changed, 2 insertions, 2 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 79f760f..3332404 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
@@ -3390,10 +3390,10 @@ long /*int*/ gtk_scroll_event (long /*int*/ widget, long /*int*/ eventPtr) {
double[] delta_x = new double[1], delta_y = new double [1];
if (OS.gdk_event_get_scroll_deltas (eventPtr, delta_x, delta_y)) {
if (delta_x [0] != 0) {
- result = (sendMouseEvent (SWT.MouseHorizontalWheel, 0, (int)(3 * delta_x [0]), 0, true, gdkEvent.time, gdkEvent.x_root, gdkEvent.y_root, false, gdkEvent.state) ? 0 : 1);
+ result = (sendMouseEvent (SWT.MouseHorizontalWheel, 0, (int)(-3 * delta_x [0]), 0, true, gdkEvent.time, gdkEvent.x_root, gdkEvent.y_root, false, gdkEvent.state) ? 0 : 1);
}
if (delta_y [0] != 0) {
- result = (sendMouseEvent (SWT.MouseWheel, 0, (int)(3 * delta_y [0]), SWT.SCROLL_LINE, true, gdkEvent.time, gdkEvent.x_root, gdkEvent.y_root, false, gdkEvent.state) ? 0 : 1);
+ result = (sendMouseEvent (SWT.MouseWheel, 0, (int)(-3 * delta_y [0]), SWT.SCROLL_LINE, true, gdkEvent.time, gdkEvent.x_root, gdkEvent.y_root, false, gdkEvent.state) ? 0 : 1);
}
}
return result;