-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Collection Repeat and remember scroll position #1654
Comments
If you use transition:all it will do some wonky stuff transitioning the transform of the elements. This should be noted in the docs. |
Woops ha, the animation was added for another example, thanks @ajoslin ! Still the issue with scroll position remains. |
@mhartington From your codepen it seems that going back to the back now keeps the position, but it doesn't work if you switch tab! |
But it should keep it's position when you switch tabs |
Not for me... Scenario 1: Scenario 2: |
Updated my comment...still pretty early over here 😄 It should keep its scroll position when you switch tabs, but right now it is not doing that. |
That's correct! |
Fixed, read the commit message for details |
@ajoslin Now it remembers the scroll position, but... It's slow if the list/lists are long (and contain images)... There is a lag, when you go back or change tab... it starts from the top and then scroll to the position... it's not very nice to see this effect! Maybe add a delay and render the The lag is only visible on real devices, not in the browser or ios emulator. |
how can I implement this on Ionic 3? |
From the forum :
http://forum.ionicframework.com/t/collection-repeat-in-tabs-and-rememberscrollposition/5912/2
If you use collection repeat with tabs, the scroll position isn't remembered when you switch tabs.
Affected Version: Nightly
Codepen: Demo Here
Side Note: There's a little wonky-ness with collection repeat, not sure if it's just me. But if you resize the browser or scroll, the new items kind of animate in.
The text was updated successfully, but these errors were encountered: