dhilt / vscroll

A JavaScript Virtual Scroll Engine

Home Page:https://dhilt.github.io/vscroll/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frequent size strategy

dhilt opened this issue · comments

Currently the vscroll engine operates on average size only. This strategy is very inefficient if 99% of items have constant height and only 1% is different. The idea is to provide an option to choose a "frequent size" strategy rather than "average size".

settings: { // devSetting?
  sizeStrategy: SizeStrategy.Frequent
}