summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorDaniel Kariv <danielkariv98@gmail.com>2022-05-19 11:55:14 +0300
committerDaniel Kariv <danielkariv98@gmail.com>2022-05-19 11:55:14 +0300
commite6c909b489282337328bca90b167b6f8158c1de9 (patch)
treed743497ed5cd22146a894c548088677c8ee8ae3b /scene/gui
parentc0d189fbb85cbfc1b7e91e38d882e123730f7e98 (diff)
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).
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/rich_text_label.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index fa0c2ce12c..c656eb9447 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<InputEvent> &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;