Fix RichTextLabel drag selection not working after double-click

(cherry picked from commit e2e8a280c3)
This commit is contained in:
uno1982
2026-03-07 19:30:41 -06:00
committed by Thaddeus Crews
parent 499ca0b8df
commit f647977a73
+2
View File
@@ -2817,6 +2817,8 @@ void RichTextLabel::gui_input(const Ref<InputEvent> &p_event) {
selection.click_char = c_index;
selection.double_click = true;
is_selecting_text = true;
click_select_held->start();
}
} else if (!b->is_pressed()) {
if (selection.enabled && DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_CLIPBOARD_PRIMARY)) {