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 }