diff --git a/packages/core/playground/main.js b/packages/core/playground/main.js index fce79a88..e174b9f3 100644 --- a/packages/core/playground/main.js +++ b/packages/core/playground/main.js @@ -12,7 +12,7 @@ const lenis = new Lenis({ // }, }) lenis.on('scroll', (e) => { - // console.log(e.userData, e.velocity, e.isScrolling) + console.log(e.velocity, e.isScrolling) }) window.lenis = lenis diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index f4254a00..6bca34cf 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -313,7 +313,8 @@ export default class Lenis { this.velocity = this.animatedScroll - lastScroll this.direction = Math.sign(this.animatedScroll - lastScroll) // this.isSmooth = false - this.isScrolling = this.hasScrolled ? 'native' : false + // this.isScrolling = this.hasScrolled ? 'native' : false + this.isScrolling = 'native' this.emit() if (this.velocity !== 0) {