mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 14:03: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 {
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user