diff options
author | KernRat <kernrat@gmail.com> | 2024-07-06 16:58:33 +0200 |
---|---|---|
committer | KernRat <kernrat@gmail.com> | 2024-07-06 16:58:33 +0200 |
commit | 3f4222bad47dc12cd82780590e3bcd7d90a8dc93 (patch) | |
tree | 7abebd1b7c413d24242c1b51c191a09c085022e6 /scene/gui | |
parent | b97110cd307e4d78e20bfafe5de6c082194b2cd6 (diff) | |
download | redot-engine-3f4222bad47dc12cd82780590e3bcd7d90a8dc93.tar.gz |
Fixed RichTextLabel + ui_down scrolling too far
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/rich_text_label.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 8ffa0f8c63..3fdb48e797 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -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()) { |