-
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
locomotive scroll == no dialog windows? #519
Comments
Hey! Have you tried to either add |
@devenini hey. |
Hey! Sorry for the late reply. To prevent the scroll event from being caught by Lenis, you can add |
hey looks like you are using nextjs, i made a fix for the v5 where you can just implement this #506 (comment) Thats all there is to it. I got it working for app router next 14. If you have questions let me know |
Thank you! This helped me to fix scrolling my mobile burger menu. Searching in documentation I've just skipped "Third Party Injected..." so didn't find solution myself. |
When I attempt to change an element to be scrolled by the locomotive it just does not work. I could see a workaround on the v5 docs using event listeners for a wheel, but it's such a mess I could not imagine writing this in my own app.
I also tried below code in Lenis before, same thing. There is absolutely no reaction from these libraries whatsoever 😕.
My question is simple: how do you work with dynamic elements popping up, eg dialogs, modals? I have no idea why destroying and isntance and recreating it with an
el
set to the dialog scrollable container has no reaction 😕.The text was updated successfully, but these errors were encountered: