darkroomengineering / lenis

How smooth scroll should be
https://lenis.darkroom.engineering
MIT License
7.35k stars 315 forks source link

_lenisRef_current.raf is not a function | @studio-freight/react-lenis #280

Closed brainchildofbalan closed 5 months ago

brainchildofbalan commented 5 months ago

image

Hi,

After installing the latest version of the package, an issue has emerged in the code while using https://www.npmjs.com/package/@studio-freight/react-lenis v0.0.40.

I have checked and found this solutuiion

lenisRef.current?.lenis?.raf(time * 1.5)

Hope you guys should update the doc. https://www.npmjs.com/package/@studio-freight/react-lenis

Thanks

clementroche commented 5 months ago

fixed in v0.0.43 thank you !