1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Android Editor: Disable magnify gesture in the ScriptEditor

This commit is contained in:
Anish Mishra
2025-01-20 20:51:52 +05:30
parent 7b1ed520bd
commit b753b87ec5

View File

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