ui-router-extras icon indicating copy to clipboard operation
ui-router-extras copied to clipboard

Remember scrolled position with sticky

Open philecom opened this issue 9 years ago • 1 comments

First of all I will like to thank you for such a wonderful add-on. I am however facing this issue I believe you can help me resolve. I have two states: 1) itemlist and 2) itemdetail. The itemlist states shows list of items which is loaded through loadmore. when a use taps on an item it takes them to the itemdetail. The issues is that when a user use the back button from the itemdetail page(state) it takes them back to the last scrolled position on the itemlist page (state) which is what I am expecting. However, when they tap directly on the itemlist button, it takes them back to the page, but this time the page is scrolled to the top instead of last scrolled state.

NOTE// I can confirm the sticky is working cos the dom/controller does not reload.

I will be glad if you can help resolve this, thank you.

philecom avatar Nov 07 '15 00:11 philecom

I'll need a plunker to replicate the issue, in order to help diagnose this problem.

Can you enable debug tracing? $stickyStateProvider.enableDebug(true);

christopherthielen avatar Feb 02 '16 19:02 christopherthielen