mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 13:50:32 +05:30
Disable offset animation on hiding player
This commit is contained in:
parent
2fe211edb4
commit
b19918e219
@ -129,8 +129,6 @@ struct VideoPlayerView: View {
|
|||||||
.onChange(of: player.presentingPlayer) { newValue in
|
.onChange(of: player.presentingPlayer) { newValue in
|
||||||
if newValue {
|
if newValue {
|
||||||
viewDragOffset = 0
|
viewDragOffset = 0
|
||||||
} else {
|
|
||||||
viewDragOffset = Self.hiddenOffset
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
|
Loading…
Reference in New Issue
Block a user