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

List jumping when new items are loaded #432

Open
jakub-wisniowski-widelab opened this issue Mar 6, 2024 · 1 comment
Open

List jumping when new items are loaded #432

jakub-wisniowski-widelab opened this issue Mar 6, 2024 · 1 comment

Comments

@jakub-wisniowski-widelab

Hi, I'm using ng v14, ngx-infinite-scroll v13.1.0

When I scroll quickly to the bottom of the list, new elements are loaded and the list jumps down - sometimes by only 1-2 items (that's acceptable) but sometimes by 10 items. I would expect this behaviour:

  • user scrolls to the bottom
  • new items are loaded
  • scrollbar's thumb goes up (to reflect new items below) but items in the viewport stay the same

I tried the solution from this thread it's a bit better but still not perfect - setting interval to 2000ms mostly fixes the problem with jumping, but scrolling gets laggy.

Here is the stackblitz: https://stackblitz.com/edit/ngx-infinite-scroll-kiwalq

Is there any way to fix it?

@jakub-wisniowski-widelab
Copy link
Author

Hi @orizens any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants