Fix timeline cursor following mouse during marker selection

(cherry picked from commit ffb697f9671d578d92d21cb3733b649088a42f2c)
This commit is contained in:
rinevard
2026-03-19 22:18:41 +08:00
committed by Thaddeus Crews
parent 12d5ed791e
commit 3da104e06a
@@ -9092,6 +9092,7 @@ void AnimationMarkerEdit::gui_input(const Ref<InputEvent> &p_event) {
float offset = (pos.x - timeline->get_name_limit()) / timeline->get_zoom_scale();
if (!read_only) {
bool selected = _try_select_at_ui_pos(pos, mb->is_command_or_control_pressed() || mb->is_shift_pressed(), false);
moving_selection_attempt = false;
menu->clear();
menu->add_icon_item(get_editor_theme_icon(SNAME("Key")), TTR("Insert Marker..."), MENU_KEY_INSERT);