Skip to content

Commit

Permalink
Fix hiding offset calc (#59)
Browse files Browse the repository at this point in the history
muukii authored Jun 24, 2024
1 parent d374a30 commit 1c7e9bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rideau/Core/RideauHostingView.swift
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1c7e9bc

Please sign in to comment.