summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-20 15:38:22 +0200
committerGitHub <noreply@github.com>2022-05-20 15:38:22 +0200
commit136da4d3bcc80d6645ec34e5a597a63f46dac7c2 (patch)
tree8ccb7399391f8fe0d2f1d70d6575e6a72d1e0aea /scene/gui
parentca4d2525bdea432548bffdae973efe4ac62dbfe5 (diff)
parente6c909b489282337328bca90b167b6f8158c1de9 (diff)
Merge pull request #61182 from danielkariv/fix_misclick_selection
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 78fd682c35..94c2a9e64b 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -1839,8 +1839,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;