Explorar o código

Fix `Tabs` offset overreaching when scrolling fast

(cherry picked from commit 0dd65fff3b342f99bdfb9e4b432ea53c93137dcc)
Michael Alexsander %!s(int64=4) %!d(string=hai) anos
pai
achega
a5214f437f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      scene/gui/tabs.cpp

+ 1 - 0
scene/gui/tabs.cpp

@@ -131,6 +131,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();
 				}
 			}