mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Fix player dismiss gesture stuck after panel dismiss with comments expanded
Reset isCommentsExpanded and commentsFrame on the NavigationCoordinator directly when the portrait panel is dismissed, since PortraitDetailsPanel owns its own @State that doesn't sync back through .onChange during dismiss. Also track comments overlay frame via GeometryReader so the dismiss gesture can allow swipes outside the comments area instead of blanket-blocking.
This commit is contained in:
@@ -120,6 +120,9 @@ final class NavigationCoordinator {
|
||||
/// Progress bar frame in screen coordinates (for gesture conflict resolution).
|
||||
var progressBarFrame: CGRect = .zero
|
||||
|
||||
/// Comments overlay frame in screen coordinates (for gesture conflict resolution).
|
||||
var commentsFrame: CGRect = .zero
|
||||
|
||||
/// Current panscan value from UIKit pinch gesture (0.0 = fit, 1.0 = fill).
|
||||
/// Updated by ExpandedPlayerWindow's pinch gesture handler.
|
||||
var pinchPanscan: Double = 0.0
|
||||
|
||||
Reference in New Issue
Block a user