Skip to content

Commit

Permalink
Merge pull request #67 from rocketnik/master
Browse files Browse the repository at this point in the history
fixes issue of scrolling back up, when sheet should close
  • Loading branch information
OfTheWolf authored Jul 3, 2021
2 parents 35071cb + 85fe725 commit f1c3bd2
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 f1c3bd2

Please sign in to comment.