darkroomengineering / lenis

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

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

Closed PauloMFJ closed 3 months ago

PauloMFJ commented 3 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 3 months ago

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