mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Revert "Stay fullscreen when opening notification center"
This reverts commit 08c922f57c
.
This commit is contained in:
parent
1c5d909201
commit
dc7cee7388
@ -32,12 +32,8 @@ extension VideoPlayerView {
|
||||
let horizontalDrag = value.translation.width
|
||||
|
||||
#if os(iOS)
|
||||
// Detect if the gesture starts within the top 5% of the screen and the player is in fullscreen mode
|
||||
if value.startLocation.y <= UIScreen.main.bounds.height * 0.05, PlayerModel.shared.playingFullScreen {
|
||||
// If it's a downward swipe, do nothing (return early)
|
||||
if verticalDrag > 0, abs(verticalDrag) > abs(horizontalDrag) {
|
||||
return
|
||||
}
|
||||
if viewDragOffset > 0, !isVerticalDrag {
|
||||
isVerticalDrag = true
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user