question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Buffer Items on Virtual Scroll

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[X ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior When speed scrolling, items are white and blank before snapping into place

Expected behavior Config number that defaults to 10 that puts 10 items above and below the visible view of the DOM so that there’s no white space when speed scrolling

Reproduction of the problem Speed scroll using virtual scrolling with a large data set, you will see lots of white space where items should be

What is the motivation / use case for changing the behavior? It would be nice to not have blank items. Can we get a config number for the buffer amount of items above and below the screen?

  • Table version: 11.x

  • Angular version: 5.0.x

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
proguardtechcommented, May 24, 2018

+1

0reactions
Hypercubedcommented, Apr 20, 2021

For now that needs to be handled the users end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scrolling | Angular Material
Loading hundreds of elements can be slow in any browser; virtual scrolling enables a performant way to simulate all items being rendered by...
Read more >
Angular Material Scroll loads more items than expected
First, you declare the cdk-virtual-scroll-viewport component to provide ... more if only one page buffer (3 rows of images per page) is left....
Read more >
Virtual scrolling: Core principles and basic implementation in ...
Learn how to implement virtual scrolling in React. ... The scroller would not have any items in the buffer on initialization; the buffer...
Read more >
Virtualize large lists with the Angular CDK - web.dev
Learn how to make large lists more responsive by implementing virtual scrolling with the Angular Component Dev Kit.
Read more >
Writing custom strategy for Angular CDK virtual scroll
Our scroll must seamlessly load new items and not waggle when we scroll and height changes. We will have a BUFFER constant to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found