mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 18:54:11 +00:00
Minor improvements
This commit is contained in:
@@ -52,8 +52,9 @@ final class PlayerControlsModel: ObservableObject {
|
||||
}
|
||||
|
||||
func show() {
|
||||
player.backend.updateControls()
|
||||
|
||||
withAnimation(PlayerControls.animation) {
|
||||
player.backend.updateControls()
|
||||
presentingControls = true
|
||||
}
|
||||
}
|
||||
@@ -65,11 +66,11 @@ final class PlayerControlsModel: ObservableObject {
|
||||
}
|
||||
|
||||
func toggle() {
|
||||
withAnimation(PlayerControls.animation) {
|
||||
if !presentingControls {
|
||||
player.backend.updateControls()
|
||||
}
|
||||
if !presentingControls {
|
||||
player.backend.updateControls()
|
||||
}
|
||||
|
||||
withAnimation(PlayerControls.animation) {
|
||||
presentingControls.toggle()
|
||||
}
|
||||
}
|
||||
|
@@ -300,6 +300,9 @@ final class PlayerModel: ObservableObject {
|
||||
}
|
||||
|
||||
private func handleNavigationViewPlayerPresentationChange() {
|
||||
backend.setNeedsDrawing(playerNavigationLinkActive)
|
||||
controls.hide()
|
||||
|
||||
if pauseOnHidingPlayer, !playingInPictureInPicture, !playerNavigationLinkActive {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
||||
self.pause()
|
||||
|
Reference in New Issue
Block a user