Skip to content

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
@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.

3 participants