mirror of
https://github.com/yattee/yattee.git
synced 2025-01-06 17:40:33 +05:30
Minor macOS performance improvement
This commit is contained in:
parent
863f47a12f
commit
5919aa1505
@ -226,7 +226,7 @@ struct VideoPlayerView: View {
|
|||||||
#else
|
#else
|
||||||
.onAppear(perform: {
|
.onAppear(perform: {
|
||||||
NSEvent.addLocalMonitorForEvents(matching: [.mouseMoved]) {
|
NSEvent.addLocalMonitorForEvents(matching: [.mouseMoved]) {
|
||||||
if hoveringPlayer {
|
if !player.currentItem.isNil, hoveringPlayer {
|
||||||
playerControls.resetTimer()
|
playerControls.resetTimer()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user