Commit 02256789 by Daniel Dahan

updated elapsed time calculations within MotionController when resuming animations

parent ca3d1923
......@@ -269,17 +269,20 @@ public extension MotionController {
return
}
guard let a = animators else {
return
}
var v: TimeInterval = 0
let et = elapsedTime
animators?.forEach {
var t = et
for x in a {
var t = elapsedTime
if t < 0 {
t = -t
}
v = max(v, $0.resume(at: t * totalDuration, isReversed: true))
v = max(v, x.resume(at: t * totalDuration, isReversed: true))
}
complete(after: v, isFinished: false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment