diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-11-29 16:30:15 -0500 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-11-29 16:30:15 -0500 |
commit | 870787fef214f5a7a4ed7ed77aab11c3ab3a4ecc (patch) | |
tree | 3a35bd47199456ceb9731d6bce4b25384b2e74ba /bundles/org.eclipse.swt/Eclipse SWT/cocoa | |
parent | 4953e90353cf03b7e9778bd8ad03e777e563314d (diff) | |
download | eclipse.platform.swt-870787fef214f5a7a4ed7ed77aab11c3ab3a4ecc.tar.gz eclipse.platform.swt-870787fef214f5a7a4ed7ed77aab11c3ab3a4ecc.tar.xz eclipse.platform.swt-870787fef214f5a7a4ed7ed77aab11c3ab3a4ecc.zip |
Bug 391627 - Scroll bar selection changed event will only be fired once when hold down mouse key on top area of vertical scroll bar on Mac cocoa if checked Use smooth scrolling
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java index efdf897794..24e0e51f39 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java @@ -2232,7 +2232,9 @@ protected void init () { markedAttributes.retain (); textView.release (); - id blink = NSUserDefaults.standardUserDefaults().objectForKey(NSString.stringWith("NSTextInsertionPointBlinkPeriod")); + NSUserDefaults defaults = NSUserDefaults.standardUserDefaults(); + defaults.setInteger(0, NSString.stringWith(OS.VERSION >= 0x1080 ? "NSScrollAnimationEnabled" : "AppleScrollAnimationEnabled")); + id blink = defaults.objectForKey(NSString.stringWith("NSTextInsertionPointBlinkPeriod")); if (blink != null) blinkTime = (int)new NSNumber(blink).integerValue(); if (blinkTime == 0) blinkTime = 560; |