Skip to content
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

Fix rounding-off error on progress calculation #346

Merged
merged 2 commits into from
May 12, 2024
Merged

Conversation

yunlinos
Copy link
Contributor

I fix a blinking issue when change lottie progress. The duration of compositon has offset in LottieCompositionParser (parameters.endFrame = reader.nextDouble() - 0.01), but progress calculate is based on the original value(no-offset), the function roundProgress() will caculate a error progress.

The issue is same as: airbnb/lottie-android#1372.

@xvrh
Copy link
Owner

xvrh commented May 12, 2024

It would be better with a test but I'll still merge it.
Thank you for the contribution.

@xvrh xvrh merged commit 3c58936 into xvrh:master May 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants