Julian Alberto De La Rosa Suncar
Posts: 0
Joined: Mon Jan 27, 2014 4:08 pm

Ionic Scroll Does not remember position on back

I have an issue that seems to be platform related to ionic. It happens that when you have a list and scroll lets say 20 items and then nevigate to a detail, when you go back the list always scroll to top and dont remember the position where you were on scrolling before. This issue seems to have a lot of workarrounds but none work for me as now.

HELPPPPP

https://forum.ionicframework.com/t/th...

https://forum.ionicframework.com/t/sc...

https://forum.ionicframework.com/t/au...

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Ionic Scroll Does not remember position on back

Hi Julian -

Would it be possible for you to share an app example with such behavior with us?

Julian Alberto De La Rosa Suncar
Posts: 0
Joined: Mon Jan 27, 2014 4:08 pm

Ionic Scroll Does not remember position on back

yes i will share via support inside the project thanks

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Ionic Scroll Does not remember position on back

Ok - thank you Julian, we will check this.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Ionic Scroll Does not remember position on back

You can use $anchorScroll for that:
1) add anchor for each list item
2) save it to the scope variable
3) read that variable after returning to that page
4) do scroll to that anchor

Return to “Issues”