From 85fe725b8b83dd3659f4a711a10586f7786debc0 Mon Sep 17 00:00:00 2001 From: Nikolas Mayr Date: Fri, 2 Jul 2021 10:44:02 +0200 Subject: [PATCH] fix --- Sources/UBottomSheet/Classes/UBottomSheetCoordinator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/UBottomSheet/Classes/UBottomSheetCoordinator.swift b/Sources/UBottomSheet/Classes/UBottomSheetCoordinator.swift index 609f2f0..d8889b2 100644 --- a/Sources/UBottomSheet/Classes/UBottomSheetCoordinator.swift +++ b/Sources/UBottomSheet/Classes/UBottomSheetCoordinator.swift @@ -494,7 +494,7 @@ public class UBottomSheetCoordinator: NSObject { - parameter currentPosition: current top constraint value of container view */ private func filteredPositions(_ velocity: CGPoint, currentPosition: CGFloat) -> [CGFloat] { - if velocity.y < 100 { /// dragging up + if velocity.y < -100 { /// dragging up let data = dataSource.sheetPositions(availableHeight).filter { (p) -> Bool in p < currentPosition }