From aafe32bb3d4a831707814bbcf692a3eafe83ed7e Mon Sep 17 00:00:00 2001 From: Shin Yamamoto Date: Wed, 24 Oct 2018 11:38:50 +0900 Subject: [PATCH] Fix a critical bug on 2(full and half) anchor positions --- Framework/Sources/FloatingPanel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/Sources/FloatingPanel.swift b/Framework/Sources/FloatingPanel.swift index f90a450..9f56ded 100644 --- a/Framework/Sources/FloatingPanel.swift +++ b/Framework/Sources/FloatingPanel.swift @@ -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]):