lenis
lenis copied to clipboard
reload from to top?
How do I do it when I reload doesn't save the scroll position, I want to start from the beginning/top
Do you want to reset scroll position on page change ? If you want to I advice you to destroy lenis before page destroy and recreate it on page create right after you called window.scrollTo(0,0)
in my case setting scroll-restoration to "manual" helped.