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 frame conversion in LottieAnimationLayer.pause(at: .marker(...)) #2469

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

calda
Copy link
Member

@calda calda commented Aug 23, 2024

This PR fixes a time conversion bug in LottieAnimationLayer.pause(at: .marker(...)).

We were previously setting currentTime = from.frameTime. currentTime is a value in seconds (TimeInterval), but frameTime is a value in frames (AnimationFrameTime). The correct implementation sets currentFrame instead.

@calda calda requested a review from 1an-xu August 23, 2024 22:48
@calda calda enabled auto-merge (squash) August 23, 2024 23:05
@calda calda merged commit ab4c5d9 into master Aug 23, 2024
13 checks passed
@calda calda deleted the cal--fix-pause-at-marker branch August 23, 2024 23:16
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