Clément Roche
Clément Roche
It makes sense since window.scrollTo() cannot interrupt lenis scroll, there is two way to handle that: - init/destroy one lenis instance per page - reset lenis scroll manually on page...
For anchors, you can just use the `anchors` option 
This would require to overwrite `window.scrollTo` API, it could be interesting ```js const originalScrollTo = window.scrollTo window.scrollTo = (x,y,options={}) => { lenis.reset() originalScrollTo(x,y,options) } ```
Hello @slavanga, nice catch. Let me fix that ASAP
hello @slavanga, i've just published a new version of lenis/framer, can you check?
Do you have the same error if you remove Lenis ? It doesn't seems to be related with Lenis at all.
I can't reproduce your issue using your [link](https://stackblitz.com/edit/github-2hpcon-pl262h?file=src%2Fcomponents%2FLayout.astro) on Firefox. Lenis doesn't deal with history or location at all so it might come from your implementation. https://github.com/livewire/livewire/discussions/7746
I'm closing this issue for lack of activity reasons
Hey @ismamz thank you for your PR, we're trying to have this feature for a long time. Let me see if i understand it well: - `preventDefault` every the link...