Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

Commit

Permalink
Convert from absolute time to local time.
Browse files Browse the repository at this point in the history
Summary: We were converting to absolute time before this change.

Reviewers: O2 Material Motion, O4 Material Motion Apple platform reviewers, chuga

Reviewed By: O4 Material Motion Apple platform reviewers, chuga

Tags: #material_motion

Maniphest Tasks: T82

Differential Revision: http://codereview.cc/D1934
  • Loading branch information
Jeff Verkoeyen committed Nov 16, 2016
1 parent 0978987 commit d9eaa54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/private/TweenPerformer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ class TweenPerformer: NSObject, ContinuousPerforming, ComposablePerforming {
animation.duration = tween.duration
if let timeline = tween.timeline {
emitter.emitPlan(TimelineScrubbable(timeline))
animation.beginTime = target.convertTime(timeline.beginTime!.doubleValue, to: nil) + tween.delay
animation.beginTime = target.convertTime(timeline.beginTime!.doubleValue, from: nil) + tween.delay
} else {
animation.beginTime = target.convertTime(CACurrentMediaTime(), to: nil) + tween.delay
animation.beginTime = target.convertTime(CACurrentMediaTime(), from: nil) + tween.delay
}

guard let token = tokenGenerator.generate() else { return }
Expand Down

0 comments on commit d9eaa54

Please sign in to comment.