fix: hide bottom player bar companion when fullscreen player is open

This commit is contained in:
marwy 2026-11-27 23:41:27 +03:00
parent 6a20172ee4
commit 8d25d641a4
2 changed files with 14 additions and 1 deletions

View file

@ -140,7 +140,8 @@ pub fn render_player_bar(
scrub_resp.hovered || scrub_resp.pressed || scrub_resp.dragged || shell.pb_scrub_frac.is_some();
let hover_t = ctx.animate_bool(WidgetId::new("pb_scrub_hover_anim"), bar_hovered || scrub_active, 0.15);
if is_custom_thumb || hover_t > 0.01 {
// Never draw PlayerBar's `ZLayer::Popover` progress bar/companion on top of FullscreenPlayer (`ZLayer::Drawer`)!
if !app.fullscreen_open && (is_custom_thumb || hover_t > 0.01) {
let display_frac = display_progress;
ctx.with_layer(ZLayer::Popover, |ctx| {