Skip to content

Commit b753b87

Browse files
Android Editor: Disable magnify gesture in the ScriptEditor
1 parent 7b1ed52 commit b753b87

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)