summaryrefslogtreecommitdiffstats
path: root/scene/gui
diff options
context:
space:
mode:
authorKernRat <kernrat@gmail.com>2024-07-06 16:58:33 +0200
committerKernRat <kernrat@gmail.com>2024-07-06 16:58:33 +0200
commit3f4222bad47dc12cd82780590e3bcd7d90a8dc93 (patch)
tree7abebd1b7c413d24242c1b51c191a09c085022e6 /scene/gui
parentb97110cd307e4d78e20bfafe5de6c082194b2cd6 (diff)
downloadredot-engine-3f4222bad47dc12cd82780590e3bcd7d90a8dc93.tar.gz
Fixed RichTextLabel + ui_down scrolling too far
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/rich_text_label.cpp2
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()) {