File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1803,7 +1803,7 @@ void RichTextLabel::_scroll_changed(double) {
18031803 return ;
18041804 }
18051805
1806- if (scroll_follow && vscroll->get_value () >= (vscroll->get_max () - Math::round ( vscroll->get_page ()) )) {
1806+ if (scroll_follow && vscroll->get_value () > (vscroll->get_max () - vscroll->get_page () - 1 )) {
18071807 scroll_following = true ;
18081808 } else {
18091809 scroll_following = false ;
@@ -4121,7 +4121,7 @@ bool RichTextLabel::is_scroll_active() const {
41214121
41224122void RichTextLabel::set_scroll_follow (bool p_follow) {
41234123 scroll_follow = p_follow;
4124- if (!vscroll->is_visible_in_tree () || vscroll->get_value () >= (vscroll->get_max () - vscroll->get_page ())) {
4124+ if (!vscroll->is_visible_in_tree () || vscroll->get_value () > (vscroll->get_max () - vscroll->get_page () - 1 )) {
41254125 scroll_following = true ;
41264126 }
41274127}
You can’t perform that action at this time.
0 commit comments