Repository navigation
Description
Edit
As described here, this is a working true fix #619 (comment)
Describe the bug
This problem occurs when you use smooth scrolling, i.e. via touch screen or trackpad
Using the 'dynamic' version of the scroller and Vue problems occur when you scroll up. Other versions, such as fixed an variable height work fine.
Scrolling down works fine, however, the second you start scrolling up it causes a jittery movement and the rows don't actually scroll up, instead it resets its position. You can hopefully see it clearly in my provided videos. For example: row 53 stays in view.
The problem is most notable by scrolling slowly. By scrolling really fast you can get over it temporarily, but as soon as the scroll starts slowing down, the problem occurs.
This issue occurs in the offical example!
Your minimal, reproducible example
https://ryhp23-3001.csb.app/
Steps to reproduce
- Open on mobile or switch the mobile emulation mode using the devtools
- swipe down in the list, this works fine
- Swipe up, position keeps resetting
Expected behavior
I expect to be able to smoothly scroll up using the dynamic variant on all platforms.
How often does this bug happen?
Every time
Screenshots or Videos
Screen.Recording.2023-11-10.at.11.16.31.mov
tanstack.scroller.bug.webm
Platform
Problem occurs on:
Chromium on MacOS
Firefox on MacOS
Chrome on Android
Firefox on Android
Firefox on Windows
Edge on Windows
Problem does NOT occur on:
Webkit based browsers basically:
safari on iPhone (emulator)
safari/Chromium/Firefox iPad
Safari on MacOS
tanstack-virtual version
3.0.0-beta.68
TypeScript version
4.8.4
Additional context
The bug does not exist on the React wrapper of virtual.
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.
Activity
[-] Scrolling up on mobile resets position using Dynamic and Vue[/-][+] Scrolling up on mobile/trackpad resets position using Dynamic and Vue[/+]JochemvanHout commentedon Nov 20, 2023
I seem to have found a temporary workaround.
In your
useVirtualizeryou can setoverscanto a relatively high number. This atleasts allows users to scroll that many items before it starts to glitch.AlejandroAkbal commentedon Mar 10, 2024
Happening to me too, I've tried to use this library 3 times for the last year and with no luck because of this exact issue
This last try, seems like not setting an overscan works 2/3 of the time
Also, this other workaround seems to work too #659
EDIT: THIS REALLY FIXED IT: #619 (comment)
zlanich commentedon Apr 8, 2026
@AlejandroAkbal #619 also worked perfectly for me.
perf: virtual-core rewrite for mount/measure-storm, plus iOS Safari h…
piecyk commentedon Oct 14, 2026
Same problem as #619, fixed in #1125: the Vue dynamic examples now measure rows in
onMounted/onUpdated, which stops the jump when scrolling up. Seeexamples/vue/dynamic; please reopen if you still see it on the latest@tanstack/vue-virtual.