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

Problem with scroll position in Firefox

Open graundas opened this issue 9 years ago • 0 comments

Hello. I have forked this repository to show a problem I do not know how to solve. In that page ( http://graundas.github.io/ui-router-extras/example/dsr/ OR http://graundas.github.io/ui-router-extras/example/sticky/ ) drill down through the Personnel states until you are editing an employee record, then go to the very bottom of the form, then click "GO TO top.cust.customerlist", and then click BACK button in your Firefox browser. You are redirected back to the Personnel tab, but the scroll position is not the same as It was when you clicked the GO TO link. Other browsers like Google Chrome or Safari saves scroll position, which was in Personnel tab before going to GO TO link, so that when BACK button is clicked, user sees GOTO link..

The thing I want to implement is to save the scroll position, so that when the user clicks GOTO link and then BACK button, he is in the same state and scroll position, which was just before clicking GOTO link.

How could that be possible in Firefox? Chrome and Safari works well. Something similar is implemented in http://christopherthielen.github.io/ui-router-extras/example/sticky where Firefox works well also, but that is not the solution for me, because there are tabs isolated with inner scrolling and I want all page to be scrollable.

Thank you in advance.

graundas avatar Oct 26 '15 17:10 graundas