rintoj / ngx-virtual-scroller

Virtual Scroll displays a virtual, "infinite" list.
https://rintoj.github.io/ngx-virtual-scroller
MIT License
979 stars 295 forks source link

Manual initialisation issue #476

Closed KessoumML closed 3 years ago

KessoumML commented 3 years ago

Hello, I have an issue regarding the initialisation of virtual scroller when the the user already scrolled many items and the page changes, the current behaviour erases the state and I didn't find a way to restore the previous state, I wonder if making previousViewPort to public will allow us to set the previous view port manually and as effect we restore the previous listing.

I summarize the problem as use case: 1) User scroll many items and click on one. 2) Router changed to item detail 3) User click go-back 4) User can't find the previous listing until he scrolls

Is there anyway to solve this issue ?