WICG / virtual-scroller

Other
2k stars 83 forks source link

[traditional-virtualization] What about lists that could go on infinitely back? #194

Closed dead-claudia closed 5 years ago

dead-claudia commented 5 years ago

Suppose you used this to implement a year scroller, and you wanted to have it be able to cycle back infinitely far. So far, it doesn't appear such functionality exists, because it requires a length, and if you don't have a start, you can't have a length.

fergald commented 5 years ago

As with #195, this branch is not being maintained. In the new proposal, you just add content to the DOM, adding at the bottom if you scroll down, adding at the top if you scroll up. E.g. the load-more demo here

https://fergald.github.io/virtual-scroller-demos/demo/

(it works with/without virtual-scroller enabled in chrome, however if it's not enabled the demo will not perform like a virtual-scroller).