Does TanStack Virtual support native CSS scroll snapping when used in a horizontal scroll?
Does TanStack Virtual (or react-virtual) support native CSS scroll snapping when used in a horizontal scroll? If not, are there any recommended workarounds or best practices for combining virtualization with scroll snapping.
1 Reply
deep-jade•2mo ago
Not out of the box, unfortunately. Scroll snapping expects static layout, while virtualization changes what’s in the DOM. You can combine them with fixed sizes and a bit of custom scroll logic, though. If you can share a sandbox of what you’re trying to do, I’ll happily help you find a clean approach!