-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request possible bug - last item on scroll up disappears #263
Comments
Did you mean render blank(missing item) when scrolling up at the bottom? |
No, I meant whenever I scroll up from any position (middle, bottom) some of the items at the end don't render. Here's an example and some diagrams to hopefully make it clearer. Example: list has 10 items we're starting scroll from the middle of the list.
|
@ZelCloud Is your device is MacOS or iOS? |
Nope, I'm on Windows, with Chrome version 85.0.4183.102. |
Same here, my device is MacOS with Chrome. My case is for chat app, when there is new message/change in the list, some messages at the end of the list disappeared. Need to scroll up and down to make them appear. |
Facing the same issue, MacOS, Chrome. |
@souljorje Nice, I can confirm I started seeing this issue when I had keeps set to a smaller number, like 10. Then scrolling up made the last items disappear. @ZelCloud Try increasing keeps to a higher number, it is set at default 30, but in my case increasing keeps to 80 has helped. |
Just to elaborate further: |
@GoldenCave, I dunno, how it works but I think you should use odd number instead of bigger. |
Ok. So for my case actually estimate-size helped.. I was wrong since by increasing :keeps it appeared to help the problem since it then rendered the entire list at once, so that subsequent scrolls wouldn't run into the problem. But on huge lists (which is the point of this component), that approach is not correct. |
It is definitely worse on Chrome vs. Firefox, for some reason. I will try to reproduce in a way that is easily seen |
I took a deeper dive into the code. To summarize the problem, it appears that this occurs only with dynamic lists (where elements in the virtual list component are not all of the same size). I have not yet found a good solution, though locally when using the component I can prevent the bad behavior if I comment out the code within |
Describe
I'm not sure if this is a bug, or if this should be a feature request.
The issue I'm running into is everything works fine except when scrolling up on a variable sized list. When I scroll up slightly the item at the bottom isn't rendered leaving a noticeable gap. Scrolling down is fine this seems to only be an issue when scrolling up. If this can be confirmed to be a bug I can try and create a minimum viable example.
If this is intended could we get a overscan property so we could tell the library to load an item or two extra outside of the visible viewport.
To Reproduce
Reproduce demo
Other
The text was updated successfully, but these errors were encountered: