mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 18:24:02 +00:00
Unify overlay animation with other controls animation
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user