-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
call stop() to reset animation without reverse animation in visual! #975
Comments
Fixed by #974 |
@buba447 are you sure? I am testing and still get what described in this issue (reversing to the starting frame) |
This problem has not been solved yet, I have reproduced it here. |
Can confirm that stopping an animation while its playing does not work properly. The CATransaction completion listener should definitely not be after the CATransaction.commit in that PR, either. tagging @thedrick .. The PR merged here looks like it made a mistake in it's placement of CATransaction.setCompletionListener (it should be before the CATransactin.commit), additionally, stop() is not working properly, at least in lottie-swift 3.1.5. Can confirm that Lottie 2.5.3 does not have this problem. |
Check these before submitting:
This issue is a:
Which Version of Lottie are you using?
Lottie 3.1.1
What Platform are you on?
What Language are you in?
Expected Behavior
I want to play the animation from 0 to 0.5, then stop it, the animationView should go back to start frame without animation
Actual Behavior
Actually, when i call stop() in the play(fromProgress....), a reverse animation came out, this is weird;
Code Example
Animation JSON
The text was updated successfully, but these errors were encountered: