mirror of
https://github.com/yattee/yattee.git
synced 2025-01-08 22:07:10 +00:00
Minor macOS performance improvement
This commit is contained in:
parent
b7c3eb0248
commit
125b8cc89a
@ -226,7 +226,7 @@ struct VideoPlayerView: View {
|
||||
#else
|
||||
.onAppear(perform: {
|
||||
NSEvent.addLocalMonitorForEvents(matching: [.mouseMoved]) {
|
||||
if hoveringPlayer {
|
||||
if !player.currentItem.isNil, hoveringPlayer {
|
||||
playerControls.resetTimer()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user