Skip to content

Commit

Permalink
Merge pull request #94003 from KernRat/scroll-fix
Browse files Browse the repository at this point in the history
Fix RichTextLabel + `ui_down` scrolling too far
  • Loading branch information
akien-mga committed Jul 10, 2024
2 parents 46e8377 + 3f4222b commit 013ee6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/rich_text_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2098,7 +2098,7 @@ void RichTextLabel::gui_input(const Ref<InputEvent> &p_event) {
handled = true;
}
if (k->is_action("ui_down", true) && vscroll->is_visible_in_tree()) {
vscroll->scroll(vscroll->get_value() + theme_cache.normal_font->get_height(theme_cache.normal_font_size));
vscroll->scroll(theme_cache.normal_font->get_height(theme_cache.normal_font_size));
handled = true;
}
if (k->is_action("ui_home", true) && vscroll->is_visible_in_tree()) {
Expand Down

0 comments on commit 013ee6a

Please sign in to comment.