Yes, I know, the problem I'm facing is exactly that. With viewTransition, it doesn't work, but without it, ScrollSmoother works perfectly. However, viewTransition is an important part of the site's flow and design.
Hi @Rodrigo that solution is not working, when you navigate the scroll dissapear from the browser. Astro is removing the body styles with the viewTransitions
I have a demo here, when first start the ScrollSmoother works fine. But when you go to test page or back again to the index page, ScrollSmoother stop working.
https://stackblitz.com/edit/withastro-astro-fagmum?file=src%2Flayouts%2FLayout.astro
Thanks !!!