Fix iOS fullscreen gesture collision with notification center

In fullscreen playback, swipe-down and timeline seek gestures now respect a 60pt safe zone at the top of the screen, allowing the system notification center gesture to work without triggering app gestures.
This commit is contained in:
Arkadiusz Fal
2025-11-22 20:11:14 +01:00
parent 73295e726a
commit 5f53e53c7a
3 changed files with 21 additions and 0 deletions

View File

@@ -199,6 +199,16 @@ struct TimelineView: View {
.gesture(
DragGesture(minimumDistance: 5, coordinateSpace: .global)
.onChanged { value in
#if os(iOS)
// In fullscreen, ignore gestures that start in the top notification center area
// to allow system notification center gesture to work
if player.playingFullScreen {
if value.startLocation.y < Constants.notificationCenterZoneHeight {
return
}
}
#endif
if !dragging {
controls.removeTimer()
draggedFrom = current