Skip to content

Commit

Permalink
Fix frame conversion in LottieAnimationLayer.pause(at: .marker(...)) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
calda authored Aug 23, 2024
1 parent 6c8319b commit ab4c5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Public/Animation/LottieAnimationLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ public class LottieAnimationLayer: CALayer {

switch position {
case .start:
currentTime = from.frameTime
currentFrame = from.frameTime
case .end:
currentTime = from.frameTime + from.durationFrameTime
currentFrame = from.frameTime + from.durationFrameTime
}
}

Expand Down

0 comments on commit ab4c5d9

Please sign in to comment.