Hello everyone, I have a local website I am working on that has an offcanvas navigation menu on mobile. When I have the Lenis smooth scroll activated in Bricksforge, the noscroll option is not working on the offcanvas, so I can still scroll it, if it’s open. If I deactivate the Lenis smooth scroll the noscroll works and I cannot scroll if the menu is open.
Not sure if it’s a bug or I can turn this off somehow.
@Daniele you had a chance to look at this?
You can take a look at the documentation for Lenis: GitHub - darkroomengineering/lenis: How smooth scroll should be
Lenis basically changes the scroll context, which is why something like this can occur.
With the data attribute data-lenis-prevent
you can exclude certain areas from Lenis, so that the normal browser behavior is preserved. Could you try that?
Thank you so much for the information!
Works like a charm!
1 Like