summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
diff options
context:
space:
mode:
authorScott Kovatch <skovatch>2010-12-20 23:59:29 +0000
committerScott Kovatch <skovatch>2010-12-20 23:59:29 +0000
commit01725ae6a7a6992a9a2b62746d985a9d4dbdb4ca (patch)
tree8a6bc68606cc831505d15b3e606097048ba1b73e /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
parent46958a15f43936733bc819b97c827c339d68bc9e (diff)
downloadeclipse.platform.swt-01725ae6a7a6992a9a2b62746d985a9d4dbdb4ca.tar.gz
eclipse.platform.swt-01725ae6a7a6992a9a2b62746d985a9d4dbdb4ca.tar.xz
eclipse.platform.swt-01725ae6a7a6992a9a2b62746d985a9d4dbdb4ca.zip
279884 - implement Mac portion of gesture support, and add stubs for all other platforms.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
index 3d9df043ce..a7ff638e64 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
@@ -941,6 +941,9 @@ void scrollWheel (int /*long*/ id, int /*long*/ sel, int /*long*/ theEvent) {
NSEvent nsEvent = new NSEvent(theEvent);
boolean handled = false;
float /*double*/ delta = nsEvent.deltaY();
+ if (display.gestureStarted) {
+ if (!sendGestureEvent(nsEvent, SWT.GESTURE_PAN, true)) handled = true;
+ }
if (delta != 0) {
boolean doit = true;
if (hooks (SWT.MouseWheel) || filters (SWT.MouseWheel)) {