浏览代码

Merge pull request #32965 from volzhs/richtextlabel-scroll-active

Fix scrolling RichTextLabel with scroll_active=false
Rémi Verschelde 5 年之前
父节点
当前提交
b365dc3441
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/rich_text_label.cpp

+ 1 - 1
scene/gui/rich_text_label.cpp

@@ -859,7 +859,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
 
 
 void RichTextLabel::_scroll_changed(double) {
 void RichTextLabel::_scroll_changed(double) {
 
 
-	if (updating_scroll)
+	if (updating_scroll || !scroll_active)
 		return;
 		return;
 
 
 	if (scroll_follow && vscroll->get_value() >= (vscroll->get_max() - vscroll->get_page()))
 	if (scroll_follow && vscroll->get_value() >= (vscroll->get_max() - vscroll->get_page()))