This PR will fix issue #30 causing the targetContentOffset(forProposedContentOffset proposedContentOffset: , withScrollingVelocity velocity: ) to return a CGPoint with
x equal to .greatestFiniteMagnitude when proposedContentOffset.x was equal to 0.
Thanks to @mmdock for finding this bug 🐞 and for proposing a solution!
This
PR
will fix issue #30 causing thetargetContentOffset(forProposedContentOffset proposedContentOffset: , withScrollingVelocity velocity: )
to return aCGPoint
withx
equal to.greatestFiniteMagnitude
whenproposedContentOffset.x
was equal to0
.Thanks to @mmdock for finding this bug 🐞 and for proposing a solution!