diff options
author | Alan McGovern <alan@xamarin.com> | 2015-02-09 14:29:14 +0300 |
---|---|---|
committer | Alan McGovern <alan@xamarin.com> | 2015-02-10 05:02:05 +0300 |
commit | 3f9333c63f81832195cecba37d8b7c1ffe7cd9f4 (patch) | |
tree | 5a6120b3ac667578ef588536acf257f699c55a2d /main/src | |
parent | ff25caafeda58dd3b0f779e20cf7756de4fc215f (diff) |
[Designer.iOS] Add an env var override to disable zoom gestures
This seems to be the best way to disable zooming in the text editor
when using a trackpad. There is no other way to prevent accidental
zooming.
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/GtkGestures.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/GtkGestures.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/GtkGestures.cs index f0f6b1a569..2562cb456e 100644 --- a/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/GtkGestures.cs +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/GtkGestures.cs @@ -45,7 +45,7 @@ namespace Mono.TextEditor { if (Platform.IsMac) { try { - isSupported = gdk_quartz_supports_gesture_events (); + isSupported = gdk_quartz_supports_gesture_events () && Environment.GetEnvironmentVariable ("DISABLE_ZOOM_GESTURE") == null; } catch (EntryPointNotFoundException) { } } |