summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-04 17:07:35 +0200
committerGitHub <noreply@github.com>2021-10-04 17:07:35 +0200
commit11c7bac1eda76a20158cf71d023bc9669ae50fbc (patch)
treeff5648852f4edb02f0477b505497d29aaf0e01d3 /scene/gui
parent865b62b1cddbb7989bc520eed2d8428c6923fee9 (diff)
parent0dd65fff3b342f99bdfb9e4b432ea53c93137dcc (diff)
Merge pull request #53392 from YeldhamDev/tabs_offset_fix
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tabs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp
index ba8dba847c..f305bf7013 100644
--- a/scene/gui/tabs.cpp
+++ b/scene/gui/tabs.cpp
@@ -156,6 +156,7 @@ void Tabs::gui_input(const Ref<InputEvent> &p_event) {
if (scrolling_enabled && buttons_visible) {
if (missing_right) {
offset++;
+ _ensure_no_over_offset(); // Avoid overreaching when scrolling fast.
update();
}
}