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:
Daniel Kariv 2022-05-19 11:55:14 +03:00 committed by Rémi Verschelde
parent 8b9f532f78
commit 47ead8504a

View file

@ -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;