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).
(cherry picked from commit e6c909b489
)
This commit is contained in:
parent
8b9f532f78
commit
47ead8504a
1 changed files with 1 additions and 1 deletions
|
@ -1233,7 +1233,7 @@ void RichTextLabel::_gui_input(Ref<InputEvent> 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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue