darkroomengineering / lenis

How smooth scroll should be

Home Page:https://lenis.darkroom.engineering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help, regarding custom wrapper and content, unable to scroll

hengshanMWC opened this issue · comments

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

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;
}

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.