Hide mouse cursor with controls in fullscreen on Mac

This commit is contained in:
Arkadiusz Fal 2022-11-13 13:54:05 +01:00
parent 4206b25f88
commit bd08cf02ad

View File

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