mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 21:22:53 +00:00
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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user