mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-22 17:17:17 +01:00
Make tab's close button responsive to touch taps
This commit is contained in:
parent
d54b5ad8f8
commit
0947677049
@ -191,12 +191,14 @@ void Tabs::_gui_input(const Ref<InputEvent> &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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user