From 0947677049fa74087685a24c4e2b8cf356f962e2 Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Tue, 4 Apr 2023 18:05:01 -0700 Subject: [PATCH] Make tab's close button responsive to touch taps --- scene/gui/tabs.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }