mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
Hide mouse cursor with controls in fullscreen on Mac
This commit is contained in:
parent
4206b25f88
commit
bd08cf02ad
@ -42,6 +42,9 @@ final class PlayerControlsModel: ObservableObject {
|
||||
self?.resetTimer()
|
||||
}
|
||||
} else {
|
||||
#if os(macOS)
|
||||
NSCursor.setHiddenUntilMouseMoves(player.playingFullScreen)
|
||||
#endif
|
||||
if !player.musicMode {
|
||||
DispatchQueue.main.async(qos: .userInteractive) { [weak self] in
|
||||
player.backend.stopControlsUpdates()
|
||||
|
Loading…
Reference in New Issue
Block a user