Compare commits

..

1 Commits

Author SHA1 Message Date
Shadowfacts 3dc36d98c1
Fix detent snapping 2019-09-24 11:23:09 -04:00
1 changed files with 0 additions and 1 deletions

View File

@ -74,7 +74,6 @@ public class SheetContainerViewController: UIViewController {
let translation = recognizer.translation(in: content.view)
var realOffset = initialConstant + translation.y
if realOffset < sortedDetentOffsets.first! {
print("should change")
func clamp(_ value: CGFloat, from: CGFloat, to: CGFloat) -> CGFloat {
if value < from {
return from