Skip to content

Commit

Permalink
Merge pull request #78777 from YeldhamDev/tab_hover_fix
Browse files Browse the repository at this point in the history
Fix delay on tab resizing when (un)hovering tabs
  • Loading branch information
YuriSizov committed Jul 12, 2023
2 parents 5dff3c4 + 7ffad29 commit 509645b
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 509645b

Please sign in to comment.