Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAlan McGovern <alan@xamarin.com>2015-02-09 14:29:14 +0300
committerAlan McGovern <alan@xamarin.com>2015-02-10 05:02:05 +0300
commit3f9333c63f81832195cecba37d8b7c1ffe7cd9f4 (patch)
tree5a6120b3ac667578ef588536acf257f699c55a2d /main
parentff25caafeda58dd3b0f779e20cf7756de4fc215f (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')
-rw-r--r--main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/GtkGestures.cs2
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) {
}
}