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).
This commit is contained in:
Daniel Kariv 2022-05-19 11:55:14 +03:00
parent c0d189fbb8
commit e6c909b489

View File

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