Fix a critical bug on 2(full and half) anchor positions

This commit is contained in:
Shin Yamamoto committed 2018-10-26 14:27:40 +09:00
1 parent 1c6c783dbe
commit aafe32bb3d
1 file changed
+1 -1
+1 -1
View File
@@ -370,7 +370,7 @@ class FloatingPanel: NSObject, UIGestureRecognizerDelegate, UIScrollViewDelegate
switch supportedPositions {
case Set([.full, .half]):
return targetPosition(from: [.half, .tip], at: currentY, velocity: velocity)
return targetPosition(from: [.full, .half], at: currentY, velocity: velocity)
case Set([.half, .tip]):
return targetPosition(from: [.half, .tip], at: currentY, velocity: velocity)
case Set([.full, .tip]):