2
0
Эх сурвалжийг харах

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 e6c909b489282337328bca90b167b6f8158c1de9)
Daniel Kariv 3 жил өмнө
parent
commit
47ead8504a

+ 1 - 1
scene/gui/rich_text_label.cpp

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