From 46735b07aab9d4bbc643d853a9e2390e4e4b37ba Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 27 Jun 2026 17:58:00 +0200 Subject: [PATCH] Show macOS player controls on hover after auto-hide When the pointer left the player window during playback, the auto-hide timer set the manual showControls override to false. The override takes precedence over hover state, so re-entering the window kept controls hidden until a click toggled them back. Clear a stale hide override on mouse activity so hovering reveals the controls again, except while the details panel is open, which keeps controls hidden on purpose. --- Yattee/Views/Player/macOS/MacOSPlayerControlsView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Yattee/Views/Player/macOS/MacOSPlayerControlsView.swift b/Yattee/Views/Player/macOS/MacOSPlayerControlsView.swift index 76e2aadb..74c6136c 100644 --- a/Yattee/Views/Player/macOS/MacOSPlayerControlsView.swift +++ b/Yattee/Views/Player/macOS/MacOSPlayerControlsView.swift @@ -277,6 +277,13 @@ struct MacOSPlayerControlsView: View { switch phase { case .active: isHovering = true + // Mouse activity clears a hide override (e.g. left by the + // auto-hide timer after the pointer exited the window) so + // hovering shows controls again. Not while the details panel + // is open — that state keeps controls hidden on purpose. + if showControls == false && !isDetailsPanelVisible { + showControls = nil + } resetHideTimer() case .ended: isHovering = false