Custom scrollbars with tanstack/virtual
i have a scrollarea component from @mantine, which uses custom scrollbars to scroll inner element (likely via syncing scroll positions)
this triggers getScrollElement of rowVirtualizer each frame causing big perf drops
any solutions on using tanstack virtual with such custom scroll elements?
works fine with native scroll event from mouse
4 Replies
xenial-blackOP•9mo ago
deep-jade•6mo ago
I've also noticed this... custom scrollbars (even just simply styled with css) look extremely choppy. Have you been able to find something that works well?
metropolitan-bronze•6mo ago
I'm not sure that's actually related to TanStack/Virtual though. Before implementing this I experienced this as well.
deep-jade•6mo ago
what exactly did you implement?
While scrolling I also notice CPU spikes