Closed iamDyeus closed 3 weeks ago
I have the same problem
Please share a minimal reproduction link, you can use codesandbox.
Simple guess by reading the documentation:
new Lenis({
prevent: (node)=>node?.hasAttribute('data-radix-scroll-area-viewport')
})
I'm closing this issue until your share a minimal reproduction link.
Describe the Bug I am building a React app that uses
shadcn
. Whilelenis
worked fine in most areas, an issue occurred in my Dashboard Layout, where I am using aScrollArea
component to display content.lenis
caused the scroll area to malfunction, preventing it from scrolling as expected. The shadcnScrollArea
component is derived from@radix-ui/react-scroll-area
. (Note: I can still scroll manually using the scrollbar in the scroll area, but cannot scroll using the mouse wheel.)To Reproduce
Here’s how my layout is set up