aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Duran2012-02-28 08:41:37 -0800
committerJonathan Duran2012-02-28 08:41:37 -0800
commitb301702e2eed93df9124b9f4f9a02fdf36d31dfa (patch)
tree3e4e1eeb00af69a8e1ae4a13da04c0ce79335867
parentad730e448c523b8c849cb1c9c63a30e8b62a2780 (diff)
downloadninja-b301702e2eed93df9124b9f4f9a02fdf36d31dfa.tar.gz
todo note
Signed-off-by: Jonathan Duran <jduran@motorola.com>
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js3
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;";