airbnb / lottie-web

Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/
MIT License
29.85k stars 2.85k forks source link

isPaused return different value when using lottie-worker. #2968

Closed nnhk23 closed 5 months ago

nnhk23 commented 1 year ago

Tell us about your environment

Hi! I notice with lottie-worker, when we need to pause & play animation, the isPaused value will not be similar to lottie-web and this leads to frozen animation on our end. The logic to set isPaused on lottie-worker is opposite from lottie main thread which leads to the mismatch behavior. I have a simple codepen to demonstrate the issue: