T
TanStack3mo ago
metropolitan-bronze

Syncing 2 virtual lists

Hey, the goal is to Sync (with no lag) the scrollTop value of two virtual lists that are in different scroll containers. The two lists have same number of elem + same eleme height but the rest is different so I cant use lane=2. I've tried having one ref on each list and listen for the onScroll event then update the scroll of the other but there is an unpleasant lag when the component are not trivial. I'm pretty sure I'm missing something in the tanstack doc because this should not be that hard I hope ? My hope would be to have only one scrollTop value and share it with the two lists but I've been unsuccessfull for now. Please help :D
1 Reply
apparent-cyan
apparent-cyan3mo ago
wrong channel? #virtual-questions

Did you find this page helpful?