Ported: 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).
- danielkariv
47ead8504a
This commit is contained in:
Relintai 2022-07-27 23:10:55 +02:00
parent 29234d3ac3
commit c3bb14f49e

View File

@ -1231,7 +1231,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;