Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketnik committed Jul 2, 2021
1 parent 35071cb commit 85fe725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/UBottomSheet/Classes/UBottomSheetCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 85fe725

Please sign in to comment.