virtual icon indicating copy to clipboard operation
virtual copied to clipboard

Vue: Scroll stutters/gets stuck when scrolling up

Open AmandoVledder opened this issue 7 months ago • 2 comments

Describe the bug

We're experiencing an issue that when scrolling back up you get stuck on a item, when using dynamic sizes.

It can easily be reproduced by scrolling a bit down in the dynamic vue example and then trying to scroll back up.

I've tried to find the cause for this but have been unable to

Your minimal, reproducible example

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

Steps to reproduce

  1. Go to https://tanstack.com/virtual/latest/docs/framework/vue/examples/dynamic
  2. Scroll a bit down
  3. Try to scroll up slowly

Expected behavior

I'm expecting to be able to scroll up

How often does this bug happen?

Every time

Screenshots or Videos

https://github.com/user-attachments/assets/d2cc4a84-855d-4295-be66-eb99a8b9f0b7

Platform

macOS Sequoia 15.4.1 - Chrome 137.0.7151.104

tanstack-virtual version

3.13.11

TypeScript version

No response

Additional context

If you scroll fast it tends to work better, but we're using this on mobile and the users do slow scrolls/swipes back up

Terms & Code of Conduct

  • [x] I agree to follow this project's Code of Conduct
  • [x] 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.

AmandoVledder avatar Jun 25 '25 10:06 AmandoVledder

https://github.com/TanStack/virtual/issues/925

I'm not entirely sure, but it seems to be effective

0x30 avatar Jul 09 '25 07:07 0x30

can confirm the bug as well in Firefox 144.0 chrome seems to be working for us, maybe its fixed there now

craftycram avatar Nov 16 '25 21:11 craftycram