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

Vue: Scroll reset/jump when going up with dynamic height rows #925

Open
2 tasks done
exception-producer opened this issue Feb 9, 2025 · 0 comments
Open
2 tasks done

Comments

@exception-producer
Copy link

exception-producer commented Feb 9, 2025

Describe the bug

When scrolling to the bottom of the list of dynamically sized rows and going back up, the scrolling view gets stuck and jumps back to the bottom around when the last row goes out of view. This does only seem to happen with the vue version though, but can already be reproduced with the documentation's example.

One can "escape" by scrolling up very quickly, but this should not happen, of course.

This sometimes also happens in random places of the list - however only when scrolling up. I've not been able to reproduce this consistently yet though. The root cause seems to be the same.

Your minimal, reproducible example

https://tanstack.com/virtual/v3/docs/framework/vue/examples/dynamic

Steps to reproduce

  1. Go to https://tanstack.com/virtual/v3/docs/framework/vue/examples/dynamic
  2. Scroll to the bottom
  3. Try scrolling back up

Expected behavior

That it scrolls as one would expect

How often does this bug happen?

Every time

Screenshots or Videos

db58462b-f3fd-4a74-99e3-65fad6f9300e.webm

Platform

every

tanstack-virtual version

3.13.0

TypeScript version

No response

Additional context

No response

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
@exception-producer exception-producer changed the title Vue: Scroll reset/jump when going up from the bottom with dynamic height rows Vue: Scroll reset/jump when going up with dynamic height rows Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant