Keep the macOS player controls hoverable when the corner layout panels come back

Exiting native fullscreen from the corner layout restores the panels, and
the controls view read that as a floating details panel opening: it set a
hide override and ignored mouse movement for as long as the panel stayed
visible, so hovering the video no longer showed the controls. Only a
floating (unpinned) panel covers the video, so the flag now excludes
pinned panels, matching the existing widescreen rule. Corner panels are
pinned, so the fullscreen restore and the title-tap toggle keep the
controls responsive to hover.
This commit is contained in:
Arkadiusz Fal
2026-09-28 23:45:24 +02:00
parent 8d340048ea
commit 309d17941d

View File

@@ -1749,7 +1749,12 @@ extension ExpandedPlayerSheet {
onTitleTap: {
onTogglePanel()
},
isDetailsPanelVisible: isPanelVisible,
// Only a floating (unpinned) panel covers the video and
// takes the controls with it. Pinned and corner layout
// panels sit beside the video: showing them again (e.g.
// the restore after native fullscreen) must not leave the
// controls hidden with hover unable to bring them back.
isDetailsPanelVisible: isPanelVisible && !isPanelPinned,
onRateChanged: { rate in
playerState.rate = rate
playerService.currentBackend?.rate = Float(rate.rawValue)