diff options
author | Jonathan Duran | 2012-02-08 21:50:50 -0800 |
---|---|---|
committer | Jonathan Duran | 2012-02-08 21:50:50 -0800 |
commit | c84c9c97b4aa8f6b6d8e18b628e083c66ae3eb6b (patch) | |
tree | e22723daf7da29f9d5223263862ab929aaabc03d /js/panels/Timeline/Keyframe.reel/Keyframe.js | |
parent | 41f077c80642793f24d8266cc77ce69d379c6bd8 (diff) | |
download | ninja-c84c9c97b4aa8f6b6d8e18b628e083c66ae3eb6b.tar.gz |
Display time reading above layers and code clean up
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/Keyframe.reel/Keyframe.js')
-rw-r--r-- | js/panels/Timeline/Keyframe.reel/Keyframe.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/panels/Timeline/Keyframe.reel/Keyframe.js b/js/panels/Timeline/Keyframe.reel/Keyframe.js index b6623dcd..c46ae8c9 100644 --- a/js/panels/Timeline/Keyframe.reel/Keyframe.js +++ b/js/panels/Timeline/Keyframe.reel/Keyframe.js | |||
@@ -133,6 +133,10 @@ var Keyframe = exports.Keyframe = Montage.create(Component, { | |||
133 | this.application.ninja.timeline.playheadmarker.style.left = this.timelinePosition + "px"; | 133 | this.application.ninja.timeline.playheadmarker.style.left = this.timelinePosition + "px"; |
134 | this.application.ninja.timeline.selectedKeyframes.push(this); | 134 | this.application.ninja.timeline.selectedKeyframes.push(this); |
135 | 135 | ||
136 | var currentMillisecPerPixel = Math.floor(this.application.ninja.timeline.millisecondsOffset / 80); | ||
137 | var currentMillisec = currentMillisecPerPixel * this.timelinePosition; | ||
138 | this.application.ninja.timeline.updateTimeText(currentMillisec); | ||
139 | |||
136 | var currentTop = this.animatedProperties["top"] + "px"; | 140 | var currentTop = this.animatedProperties["top"] + "px"; |
137 | var currentLeft = this.animatedProperties["left"] + "px"; | 141 | var currentLeft = this.animatedProperties["left"] + "px"; |
138 | 142 | ||