Skip to content

Commit 85fe725

Browse files
committed
fix
1 parent 35071cb commit 85fe725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/UBottomSheet/Classes/UBottomSheetCoordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ public class UBottomSheetCoordinator: NSObject {
494494
- parameter currentPosition: current top constraint value of container view
495495
*/
496496
private func filteredPositions(_ velocity: CGPoint, currentPosition: CGFloat) -> [CGFloat] {
497-
if velocity.y < 100 { /// dragging up
497+
if velocity.y < -100 { /// dragging up
498498
let data = dataSource.sheetPositions(availableHeight).filter { (p) -> Bool in
499499
p < currentPosition
500500
}

0 commit comments

Comments
 (0)