Any way to disable user scroll events without lenis.stop() #467
-
im trying to keep lenis active since I want it to smooth scroll here
but I dont want the user to be able to interfere with this scroll until I reenable it. using lenis.stop() just causes the
Any helps appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
clementroche
Jun 25, 2025
Replies: 1 comment 1 reply
-
You can use This will prevent user from wheel scrolling |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
clementroche
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
lock
option such as:lenis.scrollTo(0, { lock: true })
This will prevent user from wheel scrolling