lenis: Cannot read private member from an object whose class did not declare it
Describe the bug I use Lenis in my Nuxt3-Lenis module and since I updated with the latest version of Lenis I have an error when I’m using lenis.start() and lenis.stop(). It worked with version 1.0.27
I tried to fix it but without much success.
start() {
this.isStopped = false // this.#isStopped = false
this.reset()
}
stop() {
this.isStopped = true // this.#isStopped = true
this.animate.stop()
this.reset()
}
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Comments: 18 (8 by maintainers)
ok that’s not ideal anyway, thank you for your feedback, I must find a better way to handle it imo. Imma revert to previous way.
I can’t access your sandbox either @clementroche
https://codesandbox.io/p/sandbox/small-cdn-yk9cqy?file=%2Fsrc%2FApp.js%3A8%2C16 @thiervoj