浏览代码

Android Editor: Disable magnify gesture in the ScriptEditor

Anish Mishra 7 月之前
父节点
当前提交
b753b87ec5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      editor/code_editor.cpp

+ 2 - 0
editor/code_editor.cpp

@@ -933,12 +933,14 @@ void CodeTextEditor::_text_editor_gui_input(const Ref<InputEvent> &p_event) {
 		}
 	}
 
+#ifndef ANDROID_ENABLED
 	Ref<InputEventMagnifyGesture> magnify_gesture = p_event;
 	if (magnify_gesture.is_valid()) {
 		_zoom_to(zoom_factor * powf(magnify_gesture->get_factor(), 0.25f));
 		accept_event();
 		return;
 	}
+#endif
 
 	Ref<InputEventKey> k = p_event;