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