-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrolling within "overflow: auto" area. Locomotive still scrolls. #547
Comments
Hello, I’m in the same situation: I can’t disable Locomotive Scroll on the page, except within a div that has overflow: auto. Have you found any information about this? I found a discussion on the topic, but I still can’t manage to stop Locomotive Scroll. Scroll.js
Contact.js (module where I wan to stop locomotive scroll) ` export default class extends module {
}` |
Hello everyone I hope you all doing well!I have got the same issue and the fastest decision I came up is represented below.
We are adding trigger when mouse enter the needed block and disabling locomative scroll using Then resuming scroll when mouse leaving the needed block adding mouseleave trigger. My code using jQuery, but it easily can be rewritten to pure JavaScript if needed. |
You just need to add "data-lenis-prevent" to your html tag to disable Lenis / Loco eg: |
Hello 👋
I'm creating a horizontal layout and one of the "data-scroll-section' sections has some text. This text could potentially be long and become higher than 100vh. I want to be able to scroll within this area to read the rest of the content.
At the moment, the horizontal scroll kicks in as well so I'm not able to read all the content.
I've like to NOT trigger Locomotive scroll while scrolling within that area only.
Any ideas?
Thank you 👊
The text was updated successfully, but these errors were encountered: