Skip to content

Commit

Permalink
Works
Browse files Browse the repository at this point in the history
  • Loading branch information
gpeal committed Dec 15, 2024
1 parent bb561e1 commit bf8b2c3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,11 @@ private class LottieAnimatableImpl : LottieAnimatable {
frameSpeed < 0 -> minProgress - (progressRaw + dProgress)
else -> progressRaw + dProgress - maxProgress
}
if (progressPastEndOfIteration < 0f) {

if (minProgress == maxProgress) {
updateProgress(minProgress)
return false
} else if (progressPastEndOfIteration < 0f) {
updateProgress(progressRaw.coerceIn(minProgress, maxProgress) + dProgress)
} else {
val durationProgress = maxProgress - minProgress
Expand Down

0 comments on commit bf8b2c3

Please sign in to comment.