1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-21 01:13:49 +01:00

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