diff --git a/Rideau/Core/RideauHostingView.swift b/Rideau/Core/RideauHostingView.swift index 69215b5..3f0612f 100644 --- a/Rideau/Core/RideauHostingView.swift +++ b/Rideau/Core/RideauHostingView.swift @@ -425,7 +425,7 @@ final class RideauHostingView: RideauTouchThroughView { func currentHidingOffset() -> CGFloat { - let offset = actualTopMargin + let offset = actualTopMargin.rounded() var nextValue: CGFloat if let v = containerView.layer.presentation().map({ $0.frame.origin.y }) { @@ -434,6 +434,8 @@ final class RideauHostingView: RideauTouchThroughView { nextValue = containerView.frame.origin.y } + nextValue.round() + nextValue -= offset return nextValue