Pane: Fix flicker when opening/closing tabs
Tab bar was losing focus for one frame which led to it skipping rendering of tab controls & flickering. It also occured when opening new tabs.
This commit is contained in:
@@ -1687,7 +1687,7 @@ impl Pane {
|
||||
),
|
||||
)
|
||||
})
|
||||
.when(self.has_focus(cx), |tab_bar| {
|
||||
.when(self.was_focused || self.has_focus(cx), |tab_bar| {
|
||||
tab_bar.end_child({
|
||||
let render_tab_buttons = self.render_tab_bar_buttons.clone();
|
||||
render_tab_buttons(self, cx)
|
||||
|
||||
Reference in New Issue
Block a user