v2 #1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user