-
Notifications
You must be signed in to change notification settings - Fork 83
Restoring virtual scroll position #165
Comments
Good issue to keep track of! The intention is that this behaves just like a div. That is:
This will be good thing to capture in the spec, probably in the same way that the spec for div captures it. |
I think developers should have control over this behavior. For example, automatic scroll preservation doesn't necessarily make sense with reverse-chronological feeds. If I'm browsing a Twitter and click on a link on the 17th tweet, do I want to navigate back to the item I was on, or to the 17th tweet, whatever that may now be? For Discourse, they synchronize the scroll position with the URL; on refresh, it scrolls you to the item linked in the URL. |
Right, developers will have the same control as they do with div. They can sync to the URL using IDs. |
Is the idea that the developer would just |
It happens automatically: whenever the URL is For example, your comment has URL |
The specified API doesn't indicate any way to preserve/restore scroll position.
Many sites that use infinite scrolling offer a way to link to a particular position, e.g. Discourse forums https://meta.discourse.org/t/topic-list-previews/101646/16 I don't see how this would be done with the current virtual scroller.
It's especially not clear whether scroll position would be automatically preserved when the user uses the Back button to navigate back to a page with a virtual scroller.
The text was updated successfully, but these errors were encountered: