mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Fix gesture state
This commit is contained in:
@@ -166,6 +166,10 @@ struct VideoPlayerView: View {
|
||||
#endif
|
||||
}
|
||||
#if os(iOS)
|
||||
.onChange(of: dragGestureState) { newValue in
|
||||
guard !newValue else { return }
|
||||
onPlayerDragGestureEnded()
|
||||
}
|
||||
.offset(y: playerOffset)
|
||||
.animation(dragGestureState ? .interactiveSpring(response: 0.05) : .easeOut(duration: 0.2), value: playerOffset)
|
||||
.backport
|
||||
|
Reference in New Issue
Block a user