Skip to content
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

RecycleScroller: Missing rows on rapid scrollbar use #863

Open
4 tasks done
yestellar opened this issue Mar 14, 2024 · 3 comments
Open
4 tasks done

RecycleScroller: Missing rows on rapid scrollbar use #863

yestellar opened this issue Mar 14, 2024 · 3 comments
Labels

Comments

@yestellar
Copy link

Describe the bug

Hello,

I've encountered an issue with RecycleScroller while displaying a list of 10,000 items. When I scroll quickly using the scrollbar (not the mouse wheel), some rows fail to display, creating what appears as gaps in the list. This problem seems to stem from incorrect transformY calculations and typically arises after a few seconds of rapid scrolling, becoming more frequent thereafter. Is this a known issue, or could it be a result of my configuration?

Reproduction

Screenshot 2024-03-14 at 16 27 29
Screenshot 2024-03-14 at 16 27 06

System Info

Browser: Chrome
Vue version: ^3.4.15
vue-virtual-scroller version: ^2.0.0-beta.8

Used Package Manager

npm

Validations

@yestellar yestellar changed the title Gap between items on scroll RecycleScrolle: Missing rows on rapid scrollbar use Mar 14, 2024
@yestellar yestellar changed the title RecycleScrolle: Missing rows on rapid scrollbar use RecycleScroller: Missing rows on rapid scrollbar use Mar 14, 2024
@yestellar
Copy link
Author

I didn't encounter this issue after downgrading to version v2.0.0-beta.3.

@srackhall
Copy link

I have also encountered this problem, but I can only quickly call the up and down scrolling API through the dom element in the code to eliminate this problem. This should be a bug in the library itself. Unfortunately, the author seems to have no time to maintain this library in the short term and seems to be focusing on other projects.

@ferflores507
Copy link
Contributor

I didn't encounter this issue after downgrading to version v2.0.0-beta.3.

As I'm also experiencing this issue and can confirm you are correct. If you go some commits further and before v2.0.0-beta.4 you will find a commit with a simple change that produced the bug: 11488b7#diff-81ba54d7792972724aef9126b122a8b00d2f24654aa50fba1ef50fd5f2e57d39L498

The commit was a single line change with "fix" title but doesnt include enough information about what was fixing and is confusing:

image

It is important to know that version v2.0.0-beta.8 includes an improved version of the code in the screenshot but the containing method needs to be rewritten because it is too long (updateVisibleItems has nearly 250 lines of code).

To end this long history I see it difficult to have a stable version soon if the authors keep doing bug fixes attemps instead of doing a hard code refactoring first.

There is a duplicate issue if you want to check #882.

Thanks!

ferflores507 added a commit to ferflores507/vue-virtual-scroller that referenced this issue Feb 5, 2025
ferflores507 added a commit to ferflores507/vue-virtual-scroller that referenced this issue Feb 5, 2025
ferflores507 added a commit to ferflores507/vue-virtual-scroller that referenced this issue Feb 6, 2025
ferflores507 added a commit to ferflores507/vue-virtual-scroller that referenced this issue Feb 6, 2025
ferflores507 added a commit to ferflores507/vue-virtual-scroller that referenced this issue Feb 6, 2025
ferflores507 added a commit to ferflores507/vue-virtual-scroller that referenced this issue Feb 6, 2025
ferflores507 added a commit to ferflores507/vue-virtual-scroller that referenced this issue Feb 6, 2025
ferflores507 added a commit to ferflores507/vue-virtual-scroller that referenced this issue Feb 6, 2025
@hobywhan hobywhan added the bug label Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants