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
Cannot scroll up in vue dynamic example #619
Comments
Any update on this? |
Are you using Vue or React? |
React |
I fixed a similar problem by modifying the Virtualizer to not remeasure elements when scrolling up:
|
Was able to fix this by delaying measurements with So, my measure function looks like this const measureElement = (el: any) => {
nextTick(() => {
if (!el) return;
rowVirtualizer.value.measureElement(el);
});
}; |
Thanks @BazanAlexandro, your solution works perfectly! |
Describe the bug
Cannot scroll up in vue dynamic example
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/github/tanstack/virtual/tree/beta/examples/vue/dynamic?embed=1
Steps to reproduce
Expected behavior
I expect that it will scroll up without lag
How often does this bug happen?
Every time
Screenshots or Videos
Screen.Recording.2023-11-04.at.02.12.57.mp4
Platform
OS - MacOS Sonoma, Windows, Linux
Browser - Chrome Version 118.0.5993.117 (Official Build) (arm64). This issue works only in chromium browsers
tanstack-virtual version
See in codesandbox (ノ>_<)ノ
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: