Open samuelOsborne opened 1 year ago
Seems like goToAndStop(0, true) is behaving the same way on the worker as well, need to call it twice to go to frame 0
it seems that the animation correctly goes to frame 0 but the currentFrame
property is not correctly reporting it. Is that right?
@bodymovin Yep seems to be whats happening
@bodymovin the resetSegments() method seems to missing from the worker script too?
Hey folks, @bodymovin
Using the lottie_worker.min.js script and calling stop() once pauses the animation, calling stop() again goes to frame 0.
This is not the same behaviour as lottie.min.js that goes straight to frame 0 when you call stop.
Example case of having to click twice to get to frame 0 on the worker script:
https://codepen.io/Osbro/pen/mdQdKNe
Same code but with lottie-web:
https://codepen.io/Osbro/pen/ZEmERPx