albertogasparin/Optiscroll

Event callback

usb248 opened this issue ยท 2 comments

Hi,
Any callback for scrollIntoView end event ? Why ? I need to do some stuff after ending of scrollIntoView. (no i don't want to do an ugly setTimeout())

Thanks for your lib ! ๐Ÿ‘

Have you tried using the custom events that Optiscroll fires? You can bind once scrollstop before triggering scrollIntoView and that should act like a callback, fired whenever scrollIntoView completes its animation

Hmm okey I thought that this event is fired only by user interaction (like the doc mentions it). I will try it. Thanks