From c3bb14f49e2cf20c430e47dd71d1ac9c90593d48 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 27 Jul 2022 23:10:55 +0200 Subject: [PATCH] Ported: add check for selection when try to push a meta. Add a check for when we select a text but end on a link. Before it would act as if we just click an link, but now it changes it so if we click-drag over a link, we could select it (and not move to other page). - danielkariv https://github.com/godotengine/godot/commit/47ead8504adc1719bf3a60e4f71b11efb3d8b1b4 --- scene/gui/rich_text_label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index f536f36b7..8c21ff801 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -1231,7 +1231,7 @@ void RichTextLabel::_gui_input(Ref p_event) { selection.click = nullptr; - if (!b->is_doubleclick() && !scroll_updated) { + if (!b->is_doubleclick() && !scroll_updated && !selection.active) { int line = 0; Item *item = nullptr;