diff options
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index d369106c..d6c1128e 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -554,7 +554,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
554 | 554 | ||
555 | for (var i = 0; i < this.tweens.length; i++) { | 555 | for (var i = 0; i < this.tweens.length; i++) { |
556 | var keyMill = parseInt(this.tweens[i].keyFrameMillisec); | 556 | var keyMill = parseInt(this.tweens[i].keyFrameMillisec); |
557 | var trackDur = parseFloat(this.trackDuration); | 557 | // TODO - trackDur should be parseFloat rounded to significant digits |
558 | var trackDur = parseInt(this.trackDuration); | ||
558 | var keyframePercent = Math.round((keyMill / trackDur) * 100) + "%"; | 559 | var keyframePercent = Math.round((keyMill / trackDur) * 100) + "%"; |
559 | var keyframePropertyString = " " + keyframePercent + " {"; | 560 | var keyframePropertyString = " " + keyframePercent + " {"; |
560 | keyframePropertyString += "top: " + this.tweens[i].tweenedProperties["top"] + "px;"; | 561 | keyframePropertyString += "top: " + this.tweens[i].tweenedProperties["top"] + "px;"; |