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 PageViewController isScrollingFrom delegate when overshooting #669

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

rechsteiner
Copy link
Owner

When swiping fast to the next view controller, the scroll view will overshoot and trigger additional isScrollingFrom methods after didFinishScrollingFrom is called. This is expected, but the view controllers that are returned are the previously selected view controller and not the upcoming view controller. This was done to avoid triggered view controller appearance method (like viewWillAppear) for the upcoming view controllers when overshooting, but it seems like this is not happening anymore, so we can just remove this workaround.

When swiping fast to the next view controller, the scroll view will
overshoot and trigger additional isScrollingFrom methods after
didFinishScrollingFrom is called. This is expected, but the view
controllers that are returned are the previously selected view
controller and not the upcoming view controller. This was done to
avoid triggered view controller appearance method (like
viewWillAppear) for the upcoming view controllers when overshooting,
but it seems like this is not happening anymore, so we can just remove
this workaround.
@rechsteiner rechsteiner changed the base branch from main to 4.0 April 2, 2023 14:54
@rechsteiner rechsteiner merged commit 76e4c51 into 4.0 Apr 2, 2023
@rechsteiner rechsteiner deleted the page-view-delegates branch April 2, 2023 15:21
@rechsteiner rechsteiner mentioned this pull request May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant