Hey, just ran into this yesterday! The issue might be your scroll container.
If you’re scrolling inside a div (not the window), make sure the container has `overflow: auto` or `scroll`. Otherwise, javascript scroll into view won’t work properly.
Also, try adding `block: 'nearest'` to your options. Sometimes that fixes the snapping issue.
If you’re scrolling inside a div (not the window), make sure the container has `overflow: auto` or `scroll`. Otherwise, javascript scroll into view won’t work properly.
Also, try adding `block: 'nearest'` to your options. Sometimes that fixes the snapping issue.
