WICG / virtual-scroller

Other
2k stars 83 forks source link

What about 2-D structures? #71

Open minorninth opened 6 years ago

minorninth commented 6 years ago

If we want wide adoption of this pattern, it'd be nice if there was a way to extend it to at least 2 dimensions - think something like a spreadsheet or a map of tiles or some other virtually infinite 2-dimensional structure.

dtruffaut commented 6 years ago

I agree.

One more example : Pinterest : multi columns of photos (each photo having its own height). Would be great to be able to distribute photos on that N-columns easily.

fssrepository commented 5 years ago

I have a virtual scroller implementation, however, it's more robust. The main problem is backward infinity. You need to trick the browser, however, it's the most commonly used app. (chat - backward history) You need also at rotation to stay the position in place.

domenic commented 5 years ago

For the record, we've captured the layouts that are in-scope vs. out-of-scope for the initial work in https://github.com/valdrinkoshi/virtual-scroller#goals . We can use this issue to track post-MVP work on more ambitious layouts like spreadsheets or masonry.