From b753b87ec5ae3ef398fd9507fd6ae21f978b0d52 Mon Sep 17 00:00:00 2001 From: Anish Mishra Date: Mon, 20 Jan 2025 20:51:52 +0530 Subject: [PATCH] Android Editor: Disable magnify gesture in the ScriptEditor --- editor/code_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 4c934104d19..9b53bd22b05 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -933,12 +933,14 @@ void CodeTextEditor::_text_editor_gui_input(const Ref &p_event) { } } +#ifndef ANDROID_ENABLED Ref 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 k = p_event;