Skip to content

Commit

Permalink
Fix delay on tab resizing when (un)hovering tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
YeldhamDev committed Jun 27, 2023
1 parent 1b3bf48 commit 7ffad29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/gui/tab_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,8 @@ void TabBar::_update_hover() {
if (hover != -1) {
emit_signal(SNAME("tab_hovered"), hover);
}

_update_cache();
queue_redraw();
}

Expand Down Expand Up @@ -988,6 +990,7 @@ void TabBar::_on_mouse_exited() {
highlight_arrow = -1;
dragging_valid_tab = false;

_update_cache();
queue_redraw();
}

Expand Down

0 comments on commit 7ffad29

Please sign in to comment.