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

Displaying a scrollable Card on top of another scrollable Card confuses scroll #128

Open
dnschneid opened this issue Jan 18, 2016 · 2 comments

Comments

@dnschneid
Copy link

It seems like if you're scrolled down on a scrollable Card, and you create and show another scrollable Card on top of that, the scroll position of the new Card starts at the point you were scrolled on the old Card, instead of at the top. This creates further issues if your second Card is shorter than the first.

@samuelmr
Copy link

samuelmr commented Feb 4, 2016

This also happens if you have a scrollable Card, push another scrollable Card (with longer contents) and then return from the second Card with the back button. If you have scrolled far enough to the second Card's content, nothing seems to happen when you press back. (But press up and the first Card's content appears.)

@Meiguro
Copy link

Meiguro commented Feb 27, 2016

I just made a fix, but it may be a little disorienting since it animates the scroll. There's an issue with scroll_layer_set_content_offset where if called with animation set to false, it won't cancel the existing scrolling animation. The alternative is to destroy the scroll layer and recreate it, but that's tricky, so the work around I employed is simply animate back to the top. It'll be fixed in the future. Let me know how this fix works for you guys.

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

3 participants