Skip to content

Commit 28c4ae2

Browse files
committed
Merge pull request godotengine#101841 from syntaxerror247/zoom-issue
Android Editor: Disable magnify gesture in the `ScriptEditor`
2 parents e62be79 + b753b87 commit 28c4ae2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editor/code_editor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,12 +933,14 @@ void CodeTextEditor::_text_editor_gui_input(const Ref<InputEvent> &p_event) {
933933
}
934934
}
935935

936+
#ifndef ANDROID_ENABLED
936937
Ref<InputEventMagnifyGesture> magnify_gesture = p_event;
937938
if (magnify_gesture.is_valid()) {
938939
_zoom_to(zoom_factor * powf(magnify_gesture->get_factor(), 0.25f));
939940
accept_event();
940941
return;
941942
}
943+
#endif
942944

943945
Ref<InputEventKey> k = p_event;
944946

0 commit comments

Comments
 (0)