1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 22:30:32 +05:30

Unify overlay animation with other controls animation

This commit is contained in:
Arkadiusz Fal 2022-07-07 00:30:42 +02:00
parent 2e71fafa79
commit 10a9ac813c

View File

@ -13,7 +13,7 @@ struct PlayerGestures: View {
if model.presentingControlsOverlay { if model.presentingControlsOverlay {
model.presentingControls = true model.presentingControls = true
model.resetTimer() model.resetTimer()
withAnimation { withAnimation(PlayerControls.animation) {
model.presentingControlsOverlay = false model.presentingControlsOverlay = false
} }
} else { } else {
@ -35,7 +35,7 @@ struct PlayerGestures: View {
if model.presentingControlsOverlay { if model.presentingControlsOverlay {
model.presentingControls = true model.presentingControls = true
model.resetTimer() model.resetTimer()
withAnimation { withAnimation(PlayerControls.animation) {
model.presentingControlsOverlay = false model.presentingControlsOverlay = false
} }
} else { } else {
@ -57,7 +57,7 @@ struct PlayerGestures: View {
if model.presentingControlsOverlay { if model.presentingControlsOverlay {
model.presentingControls = true model.presentingControls = true
model.resetTimer() model.resetTimer()
withAnimation { withAnimation(PlayerControls.animation) {
model.presentingControlsOverlay = false model.presentingControlsOverlay = false
} }
} else { } else {