mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 13:12:53 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user