diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index 1483cdd92..eb7312f04 100644 --- a/scene/gui/tabs.cpp +++ b/scene/gui/tabs.cpp @@ -191,12 +191,14 @@ void Tabs::_gui_input(const Ref &p_event) { for (int i = offset; i <= max_drawn_tab; i++) { if (tabs[i].rb_rect.has_point(pos)) { rb_pressing = true; + _update_hover(); update(); return; } if (tabs[i].cb_rect.has_point(pos) && (cb_displaypolicy == CLOSE_BUTTON_SHOW_ALWAYS || (cb_displaypolicy == CLOSE_BUTTON_SHOW_ACTIVE_ONLY && i == current))) { cb_pressing = true; + _update_hover(); update(); return; }