tbranyen / hyperlist

A performant virtual scrolling list utility capable of rendering millions of rows
Other
446 stars 44 forks source link

Handling of multiple tiles per row #44

Open PaulRotar93 opened 6 years ago

PaulRotar93 commented 6 years ago

Hello,

Besides using the plugin as a method to render lists I'd also like to be able to render tiles. Let's say that I Got 5000 divs with a width of 64x64 px and I want to keep the same behaivor of the scroller as it is with the list. The main issue I see here is that the top position of each element and not having a "spacer" div on top, which will emulate the height being scrolled it's not really easy to achieve unless I'm calculating how many tiles can fit in one row and render the list element containing those specific tiles, which it's not the optimal way to go I suppose especially when resizing the container since I need to recalculate all over again.

My question would be.. is it possible to have this kind of feature in the near future ?