tweak virtual list

This commit is contained in:
Nolan Lawson 2018-01-16 09:10:24 -08:00
parent 163f55875d
commit e6e84e9079

View file

@ -12,7 +12,7 @@ const virtualListStore = new VirtualListStore({
virtualListStore.compute('visibleItems',
['items', 'scrollTop', 'height', 'itemHeights', 'innerHeight'],
(items, scrollTop, height, itemHeights, innerHeight) => {
let renderBuffer = 2 * innerHeight
let renderBuffer = 1.5 * innerHeight
let visibleItems = []
let totalOffset = 0
let len = items.length