Browse Source

Fix `Tabs` offset overreaching when scrolling fast

Michael Alexsander 3 years ago
parent
commit
0dd65fff3b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/gui/tabs.cpp

+ 1 - 0
scene/gui/tabs.cpp

@@ -156,6 +156,7 @@ void Tabs::gui_input(const Ref<InputEvent> &p_event) {
 			if (scrolling_enabled && buttons_visible) {
 			if (scrolling_enabled && buttons_visible) {
 				if (missing_right) {
 				if (missing_right) {
 					offset++;
 					offset++;
+					_ensure_no_over_offset(); // Avoid overreaching when scrolling fast.
 					update();
 					update();
 				}
 				}
 			}
 			}