From 1e85f1c0bcac73e3857b143cb61cf06c75654f5f Mon Sep 17 00:00:00 2001 From: Admin Date: Sun, 8 Mar 2026 14:16:05 +0500 Subject: [PATCH] fix: improve seek gesture priority in mini player Change seek gesture from .gesture to .highPriorityGesture to ensure horizontal press-and-drag seeking takes precedence over the vertical swipe gesture. This fixes unreliable seeking when dragging on the mini player progress bar. --- ios/LibNovel/LibNovel/Views/Player/PlayerViews.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ios/LibNovel/LibNovel/Views/Player/PlayerViews.swift b/ios/LibNovel/LibNovel/Views/Player/PlayerViews.swift index d948c06..e09501f 100644 --- a/ios/LibNovel/LibNovel/Views/Player/PlayerViews.swift +++ b/ios/LibNovel/LibNovel/Views/Player/PlayerViews.swift @@ -29,7 +29,7 @@ struct MiniPlayerView: View { .frame(width: max(0, geo.size.width * (isSeeking ? seekProgress : progress))) } .contentShape(Rectangle()) - .gesture( + .highPriorityGesture( DragGesture(minimumDistance: 0) .onChanged { value in isSeeking = true @@ -165,6 +165,8 @@ struct MiniPlayerView: View { } .padding(.horizontal, 20) .padding(.vertical, 12) + // Block interaction with content layer from affecting progress bar + .allowsHitTesting(true) } .background( // Dark rounded background (pill-shaped with full circular ends)