Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong targetContentOffset return values #31

Merged
merged 1 commit into from
Nov 2, 2017

Conversation

giulio92
Copy link
Owner

@giulio92 giulio92 commented Nov 2, 2017

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!

@giulio92 giulio92 added the bug label Nov 2, 2017
@giulio92 giulio92 self-assigned this Nov 2, 2017
@giulio92 giulio92 changed the base branch from master to develop November 2, 2017 09:58
@giulio92 giulio92 merged commit 7964dac into develop Nov 2, 2017
@giulio92 giulio92 deleted the feature/fix-wrong-targetContentOffset branch November 2, 2017 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant