Fix Tabs offset overreaching when scrolling fast

This commit is contained in:
Michael Alexsander 2021-10-04 10:37:53 -03:00
parent 06e2cef459
commit 0dd65fff3b

View file

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