From a5214f437fa80380a51cab2ccdcc0ef4ec732a71 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Mon, 4 Oct 2021 10:37:53 -0300 Subject: [PATCH] Fix `Tabs` offset overreaching when scrolling fast (cherry picked from commit 0dd65fff3b342f99bdfb9e4b432ea53c93137dcc) --- scene/gui/tabs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index 7304fe1e6dc..a66df3fb4f5 100644 --- a/scene/gui/tabs.cpp +++ b/scene/gui/tabs.cpp @@ -131,6 +131,7 @@ void Tabs::_gui_input(const Ref &p_event) { if (scrolling_enabled && buttons_visible) { if (missing_right) { offset++; + _ensure_no_over_offset(); // Avoid overreaching when scrolling fast. update(); } }