Skip to content

Huge delay before scroll #342

Answered by m4kman
m4kman asked this question in Q&A
May 28, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Thanks for getting back.

Sorry for the delay, but I managed to resolve the issue.

As I was creating a reproduction, I realized I had a scroll-smooth class on the html tag in my layout.tsx file. This added a scroll-behavior CSS property. I believe trying to add Lenis scroll on top of the native smooth scroll led to a conflict, which resulted in the above weird behavior. Removing the class fixed the issue.

This has been a learning opportunity, to say the least.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@m4kman
Comment options

Answer selected by clementroche
@feledori
Comment options

@hamidurrk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants