Describe the bug
When setting up Lenis, the native scrollend
event is triggered consistently right after the scroll
event. This causes issues for any library relying on this recently introduced event. For instance, Astro <ClientRouter/>
uses this event to store the scroll position for restoration purposes. For performance reasons, Astro chose this event over a debounced scroll
event.
See the corresponding issue on the Astro repository.
To Reproduce
Fork this example and look at the console output.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too