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

CCScrollLayer: moveToPage: method doesn't call scrolledToPageNumber in the delegate #125

Open
solkar opened this issue Jul 11, 2013 · 0 comments

Comments

@solkar
Copy link

solkar commented Jul 11, 2013

Delegate should receive scrolledToPageNumber message after user scrolls to new page but it is not sent.

How to reproduce

  • ScrollLayer starts showing page 1, set selectPage:1
  • Scroll to page 0, with touch input

Cause

In selectPage method prevScreen_ is set to 0. If you start in page 1 and scroll to page 0, then prevScreen_ is 0, same as currentScreen_ thus no message is sent to the delegate.

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