浏览代码

Merge pull request #82079 from RoyBerube/OutputScroll

Enable scrolling of output with UI scale changes
Rémi Verschelde 1 年之前
父节点
当前提交
cbae80006c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/rich_text_label.cpp

+ 1 - 1
scene/gui/rich_text_label.cpp

@@ -1771,7 +1771,7 @@ void RichTextLabel::_scroll_changed(double) {
 		return;
 	}
 
-	if (scroll_follow && vscroll->get_value() >= (vscroll->get_max() - vscroll->get_page())) {
+	if (scroll_follow && vscroll->get_value() >= (vscroll->get_max() - Math::round(vscroll->get_page()))) {
 		scroll_following = true;
 	} else {
 		scroll_following = false;