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:
@@ -31,6 +31,7 @@ extension ExpandedPlayerSheet {
|
||||
|
||||
/// Collapses the comments overlay.
|
||||
func collapseComments() {
|
||||
navigationCoordinator?.commentsFrame = .zero
|
||||
// Use same animation as player sheet dismiss (0.3s, no bounce)
|
||||
withAnimation(.smooth(duration: 0.3)) {
|
||||
isCommentsExpanded = false
|
||||
|
||||
Reference in New Issue
Block a user