Skip to content

Commit 1c7e9bc

Browse files
authored
Fix hiding offset calc (#59)
1 parent d374a30 commit 1c7e9bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rideau/Core/RideauHostingView.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ final class RideauHostingView: RideauTouchThroughView {
425425

426426
func currentHidingOffset() -> CGFloat {
427427

428-
let offset = actualTopMargin
428+
let offset = actualTopMargin.rounded()
429429

430430
var nextValue: CGFloat
431431
if let v = containerView.layer.presentation().map({ $0.frame.origin.y }) {
@@ -434,6 +434,8 @@ final class RideauHostingView: RideauTouchThroughView {
434434
nextValue = containerView.frame.origin.y
435435
}
436436

437+
nextValue.round()
438+
437439
nextValue -= offset
438440

439441
return nextValue

0 commit comments

Comments
 (0)