Skip to content

Commit cade93d

Browse files
committed
dismiss 최소 속도 조정
1 parent 3639b11 commit cade93d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Controller/SheetContentsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ open class SheetContentsViewController: UICollectionViewController {
8383
let velocity = scrollView.panGestureRecognizer.velocity(in: nil)
8484
if scrollView.contentOffset.y <= -10 && velocity.y >= 400 {
8585
let diff = UIScreen.main.bounds.height - topMargin
86-
let duration = diff / velocity.y
86+
let duration = min(0.3, diff / velocity.y)
8787
sheetNavigationController?.close(duration: TimeInterval(duration))
8888
}
8989
}

0 commit comments

Comments
 (0)