diff --git a/PanModal/Controller/PanModalPresentationController.swift b/PanModal/Controller/PanModalPresentationController.swift index 56f8aaf..490fb66 100644 --- a/PanModal/Controller/PanModalPresentationController.swift +++ b/PanModal/Controller/PanModalPresentationController.swift @@ -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 }