mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 20:53:15 +00:00
Make tab's close button responsive to touch taps
(cherry picked from commit 7325ffdd46
)
This commit is contained in:
parent
bceb910f3a
commit
01014a7475
@ -255,12 +255,14 @@ void TabBar::gui_input(const Ref<InputEvent> &p_event) {
|
||||
|
||||
if (tabs[i].rb_rect.has_point(pos)) {
|
||||
rb_pressing = true;
|
||||
_update_hover();
|
||||
queue_redraw();
|
||||
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();
|
||||
queue_redraw();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user