loading...

re: scrollIntoView is the best thing since sliced bread VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Ok, I just figured out what my issue is. I'm an idiot who doesn't read the documentation. I ignored the options arguments inline and block so far....

Actually, this sub-thread detour specifically just helped me learn about this for a Vue app, so thanks for that everyone :)

I used {block: "nearest"} instead of {block: "center"}. It prevents the vertical scroll.
I also developed a horizontal scroll-carousel. And it works really fine!

Code of Conduct Report abuse