mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
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()
|
self?.resetTimer()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
#if os(macOS)
|
||||||
|
NSCursor.setHiddenUntilMouseMoves(player.playingFullScreen)
|
||||||
|
#endif
|
||||||
if !player.musicMode {
|
if !player.musicMode {
|
||||||
DispatchQueue.main.async(qos: .userInteractive) { [weak self] in
|
DispatchQueue.main.async(qos: .userInteractive) { [weak self] in
|
||||||
player.backend.stopControlsUpdates()
|
player.backend.stopControlsUpdates()
|
||||||
|
Loading…
Reference in New Issue
Block a user