feat(library): make virtual scroll buffer reactive to window height

The virtual scroller now uses the windows's height times 1.5 as the size of the buffer. This loads
13 rows of 8 items on a 1920x1080 screen, further reducing pop-in when scrolling fast. The
multiplier is expected to be adjusted through testing on more devices down the line.
This commit is contained in:
MrTimscampi 2020-09-26 13:27:58 +02:00
parent 34f6118767
commit 071da486b6

View File

@ -10,7 +10,7 @@
class="scroller"
:items="itemsChunks"
:min-item-size="350"
:buffer="600"
:buffer="$vuetify.breakpoint.height * 1.5"
page-mode
>
<template v-slot="{ item, index, active }">