1
0
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:
Arkadiusz Fal 2023-04-22 18:06:34 +02:00
parent 2fe211edb4
commit b19918e219

View File

@ -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 {