Page 1 of 1

Ionic Scroll Does not remember position on back

Posted: Thu Mar 24, 2016 4:13 am
by Julian Alberto De La Rosa Suncar

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...


Ionic Scroll Does not remember position on back

Posted: Thu Mar 24, 2016 7:08 am
by Illya Stepanov

Hi Julian -

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


Ionic Scroll Does not remember position on back

Posted: Thu Mar 24, 2016 1:08 pm
by Julian Alberto De La Rosa Suncar

yes i will share via support inside the project thanks


Ionic Scroll Does not remember position on back

Posted: Thu Mar 24, 2016 3:08 pm
by Illya Stepanov

Ok - thank you Julian, we will check this.


Ionic Scroll Does not remember position on back

Posted: Thu Mar 24, 2016 10:46 pm
by Illya Stepanov

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