[PanModal] Round frame positions for comparison (#83)
This commit is contained in:
parent
f02439dc0c
commit
208640e03e
|
|
@ -311,7 +311,7 @@ private extension PanModalPresentationController {
|
|||
var isPresentedViewAnchored: Bool {
|
||||
if !isPresentedViewAnimating
|
||||
&& extendsPanScrolling
|
||||
&& presentedView.frame.minY <= anchoredYPosition {
|
||||
&& presentedView.frame.minY.rounded() <= anchoredYPosition.rounded() {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue