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

should set currentScreen_ at top of moveToPageEnded method #121

Open
KerryBatts opened this issue May 25, 2013 · 0 comments
Open

should set currentScreen_ at top of moveToPageEnded method #121

KerryBatts opened this issue May 25, 2013 · 0 comments

Comments

@KerryBatts
Copy link

When swiping, all's fine, but if I call moveToPage, this method isn't always passing the correct page number to the delegate.

I added a line to the top of the moveToPageEnded, and it solved this issue. I don't see any negative side effects, but let me know if I missed something.

add this to the top, before the comparison to prevScreen_:
currentScreen_ = [self pageNumberForPosition:self.position];

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

No branches or pull requests

1 participant