Przeglądaj źródła

Merge pull request #82079 from RoyBerube/OutputScroll

Enable scrolling of output with UI scale changes
Rémi Verschelde 1 rok temu
rodzic
commit
cbae80006c
1 zmienionych plików z 1 dodań i 1 usunięć
  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;