I need to find a way to make horizontal scrolling on my really wide graph snap to specific points along the x-axis. I initially tried using scroll-snap-points-x, but unfortunately it doesn't seem to be supported.
My attempt to add invisible elements as snap points within the container div caused issues with the size of the original item and resulted in a broken page layout due to the CSS constraints.
Is there a solution to ensure that a single wide element snaps to specific points while scrolling, even if it means adding invisible elements for this purpose?
<div class="container">
<svg id="my-graph" width="10000px"></svg>
</div