aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2013-11-24 09:12:37 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2013-11-24 09:12:37 +1100
commitd97bf3f1d81437d5bb0f415e2b7f282f160c6b8e (patch)
treeda0c99ec2db317eafd9d5ff041fdae69834f7510
parentd1c8b303fe5f09b72ad3c9688b1eb184fcdb1c59 (diff)
downloadscintilla-mirror-d97bf3f1d81437d5bb0f415e2b7f282f160c6b8e.tar.gz
Disable scroll wheel magnification by default since it causes visual garbage to
appear on OS X 10.9 when scrolling horizontally on a retina display.
-rw-r--r--cocoa/ScintillaView.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index f64d1eaa1..9bc0a5d1c 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -615,7 +615,11 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor)
/**
* Mouse wheel with command key magnifies text.
+ * Enabling this code causes visual garbage to appear when scrolling
+ * horizontally on OS X 10.9 with a retina display.
+ * Pinch gestures and key commands can be used for magnification.
*/
+#ifdef SCROLL_WHEEL_MAGNIFICATION
- (void) scrollWheel: (NSEvent *) theEvent
{
if (([theEvent modifierFlags] & NSCommandKeyMask) != 0) {
@@ -624,6 +628,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor)
[super scrollWheel:theEvent];
}
}
+#endif
//--------------------------------------------------------------------------------------------------