Allow pinch-to-panscan on the video in the corner layout

The window-level pinch was blocked whenever the landscape panel was
pinned and visible (the corner layout always counts as pinned) or a
stale portrait-panel flag was set. In the corner layout the pinch now
starts when it begins inside the video region, and the panscan
control button is enabled there too.
This commit is contained in:
Arkadiusz Fal
2026-10-20 23:43:47 +02:00
parent b98cc216ad
commit e276c99d0b
3 changed files with 37 additions and 1 deletions

View File

@@ -145,6 +145,10 @@ final class NavigationCoordinator {
/// inside it must not start the sheet dismiss pan (drag handle conflict).
var cornerBelowPanelFrame: CGRect = .zero
/// Corner layout video region frame in screen coordinates — the pinch
/// panscan gesture only begins inside it while the panels are showing.
var cornerVideoFrame: CGRect = .zero
/// Panel resize grabber strip frame in screen coordinates — touches inside
/// it must not start the sheet dismiss pan (a diagonal resize drag would
/// otherwise be cancelled and dismiss the player instead).