We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3639b11 commit cade93dCopy full SHA for cade93d
Sources/Controller/SheetContentsViewController.swift
@@ -83,7 +83,7 @@ open class SheetContentsViewController: UICollectionViewController {
83
let velocity = scrollView.panGestureRecognizer.velocity(in: nil)
84
if scrollView.contentOffset.y <= -10 && velocity.y >= 400 {
85
let diff = UIScreen.main.bounds.height - topMargin
86
- let duration = diff / velocity.y
+ let duration = min(0.3, diff / velocity.y)
87
sheetNavigationController?.close(duration: TimeInterval(duration))
88
}
89
0 commit comments