diff --git a/Shared/Player/VideoPlayerView.swift b/Shared/Player/VideoPlayerView.swift index 3cc45376..5a6a2608 100644 --- a/Shared/Player/VideoPlayerView.swift +++ b/Shared/Player/VideoPlayerView.swift @@ -133,6 +133,13 @@ struct VideoPlayerView: View { #if os(iOS) .frame(width: playerWidth.isNil ? nil : Double(playerWidth!), height: playerHeight.isNil ? nil : Double(playerHeight!)) .ignoresSafeArea(.all, edges: playerEdgesIgnoringSafeArea) + .onChange(of: player.presentingPlayer) { newValue in + if newValue { + viewDragOffset = 0 + } else { + viewDragOffset = Self.hiddenOffset + } + } .onAppear { viewDragOffset = 0