mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +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
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user