Help, regarding custom wrapper and content, unable to scroll
hengshanMWC opened this issue · comments
马灿 commented
Describe the bug
There is a scroll bar in the modal box, which prevents me from scrolling. I want to modify the wrapper and content
To Reproduce
https://codepen.io/abmao/pen/gOyPXwm
Clément Roche commented
Lenis is meant to smooth any element that is already scrollable. In your codepen, #wrapper
is not srollable, you must do it using CSS first otherwise Lenis does nothing.
#wrapper {
height: 100vh;
overflow: auto;
}
马灿 commented
Lenis is meant to smooth any element that is already scrollable. In your codepen,
#wrapper
is not srollable, you must do it using CSS first otherwise Lenis does nothing.#wrapper { height: 100vh; overflow: auto; }
Thank you.