From e6c909b489282337328bca90b167b6f8158c1de9 Mon Sep 17 00:00:00 2001 From: Daniel Kariv Date: Thu, 19 May 2022 11:55:14 +0300 Subject: [PATCH] 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). --- scene/gui/rich_text_label.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index fa0c2ce12cc..c656eb9447a 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -1841,8 +1841,7 @@ void RichTextLabel::gui_input(const Ref &p_event) { deselect(); } } - - if (!b->is_double_click() && !scroll_updated) { + if (!b->is_double_click() && !scroll_updated && !selection.active) { Item *c_item = nullptr; bool outside = true;