mirror of https://github.com/godotengine/godot
Merge pull request #101841 from syntaxerror247/zoom-issue
Android Editor: Disable magnify gesture in the `ScriptEditor`
This commit is contained in:
commit
28c4ae2f44
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue