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.
This commit is contained in:
Arkadiusz Fal
2026-06-27 17:58:00 +02:00
parent 4ccbe153a7
commit 46735b07aa

View File

@@ -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