darkroomengineering / lenis

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

'userData' Doesn't Get Emitted If 'scrollTo' Is Called With 'immediate' #349

Closed PauloMFJ closed 5 months ago

PauloMFJ commented 5 months ago

The Bug As per title - 'userData' doesn't get emitted if 'scrollTo' is called with 'immediate'. Lenis version: 1.1.2.

To Reproduce The issue can be replicated here: https://codepen.io/paulomfj/pen/vYwZVeJ

clementroche commented 5 months ago

hey @PauloMFJ, it should be fixed in v1.1.3-dev.0