You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updateVisibleItems needs to get the value of scrollTop,
which can be expensive because of layout calculations. Further,
checking the view at 60fps can be overkill, especially if you
have a well-sized buffer. Setting updateInterval to a small
value such as 100ms drastically reduces CPU usage.
Signed-off-by: Varun Patil <[email protected]>
Copy file name to clipboardExpand all lines: packages/vue-virtual-scroller/README.md
+1
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,7 @@ When the user scrolls inside RecycleScroller, the views are mostly just moved ar
187
187
-`prerender` (default: `0`): render a fixed number of items for Server-Side Rendering (SSR).
188
188
-`buffer` (default: `200`): amount of pixel to add to edges of the scrolling visible area to start rendering items further away.
189
189
-`emitUpdate` (default: `false`): emit a `'update'` event each time the virtual scroller content is updated (can impact performance).
190
+
-`updateInterval` (default: `0`): the interval in ms at which the view will be checked for updates after scrolling. When set to `0`, checked will happen during the next animation frame.
190
191
-`listClass` (default: `''`): custom classes added to the item list wrapper.
191
192
-`itemClass` (default: `''`): custom classes added to each item.
192
193
-`listTag` (default: `'div'`): the element to render as the list's wrapper.
0 commit comments