Closed gercordero closed 1 year ago
First of all i don't think you need a scroll wrapper, why don't you use page scroll ? Anyway, just remove overflow hidden on your wrapper. If you're using React, i advise you to take a look at react-lenis.
About ScrollTrigger, you need to use your wrapper element as scroller
Describe the bug I am currently using React-Three-Next starter which has a Scroll component that uses Lenis in a very similar way to React Lenis.
When I use the Scroll component to wrap my pages they look fine and I can scroll them with the mouse wheel and trackpad without problems but the scroll bar is not visible and on touch devices I can't scroll unless I set the smoothTouch option to true. In addition to that when I try to integrate the gsap ScrollTrigger plugin the scroller-start and scroller-end are both at the top of the page.
Here you can see the issue:
https://user-images.githubusercontent.com/13878860/231392679-32899a1a-cd06-4b4c-bb9b-6a83fa1ea14c.mov
I am also sharing part of my implementation in case it helps: