mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 05:53:41 +00:00
Unify overlay animation with other controls animation
This commit is contained in:
parent
2e71fafa79
commit
10a9ac813c
@ -13,7 +13,7 @@ struct PlayerGestures: View {
|
||||
if model.presentingControlsOverlay {
|
||||
model.presentingControls = true
|
||||
model.resetTimer()
|
||||
withAnimation {
|
||||
withAnimation(PlayerControls.animation) {
|
||||
model.presentingControlsOverlay = false
|
||||
}
|
||||
} else {
|
||||
@ -35,7 +35,7 @@ struct PlayerGestures: View {
|
||||
if model.presentingControlsOverlay {
|
||||
model.presentingControls = true
|
||||
model.resetTimer()
|
||||
withAnimation {
|
||||
withAnimation(PlayerControls.animation) {
|
||||
model.presentingControlsOverlay = false
|
||||
}
|
||||
} else {
|
||||
@ -57,7 +57,7 @@ struct PlayerGestures: View {
|
||||
if model.presentingControlsOverlay {
|
||||
model.presentingControls = true
|
||||
model.resetTimer()
|
||||
withAnimation {
|
||||
withAnimation(PlayerControls.animation) {
|
||||
model.presentingControlsOverlay = false
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user