Fix Tabs offset overreaching when scrolling fast

(cherry picked from commit 0dd65fff3b)
This commit is contained in:
Michael Alexsander 2021-10-04 10:37:53 -03:00 committed by Rémi Verschelde
parent 72a922eb4e
commit a5214f437f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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();
}
}