Fix a critical bug on 2(full and half) anchor positions
This commit is contained in:
1 parent
1c6c783dbe
commit
aafe32bb3d
1 file changed
+1
-1
@@ -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]):
|
||||
|
||||
Reference in new issue
Block a user