forcedotcom/scrollerjs

Surfaces dom entries are created for every row!

Closed this issue · 1 comments

  1. Is there a way to set the max number of 'surface' divs in the viewport? Eg +1 top/bottom just outside the viewport. Currently, I see 6 additional non-viewable 'surface' divs created which are not needed.

  2. In your youtube video, how are you adding rows to the Scroller object - via window.scroller.prependItems() ?

Many thanks

Sorry for the loong delay in the response, this project its been in stand by mode for a while.

  1. The surfaces are calculated based on the available viewport area.
  2. Yes in the examples you can find the exact code.