Revert "Stay fullscreen when opening notification center"

This reverts commit 08c922f57c.
This commit is contained in:
Arkadiusz Fal 2024-08-24 13:56:25 +02:00
parent 1c5d909201
commit dc7cee7388

View File

@ -32,12 +32,8 @@ extension VideoPlayerView {
let horizontalDrag = value.translation.width let horizontalDrag = value.translation.width
#if os(iOS) #if os(iOS)
// Detect if the gesture starts within the top 5% of the screen and the player is in fullscreen mode if viewDragOffset > 0, !isVerticalDrag {
if value.startLocation.y <= UIScreen.main.bounds.height * 0.05, PlayerModel.shared.playingFullScreen { isVerticalDrag = true
// If it's a downward swipe, do nothing (return early)
if verticalDrag > 0, abs(verticalDrag) > abs(horizontalDrag) {
return
}
} }
#endif #endif