Selaa lähdekoodia

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).
Daniel Kariv 3 vuotta sitten
vanhempi
commit
e6c909b489
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      scene/gui/rich_text_label.cpp

+ 1 - 2
scene/gui/rich_text_label.cpp

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