diff options
author | Jon Reid | 2012-07-16 15:38:59 -0700 |
---|---|---|
committer | Jon Reid | 2012-07-16 15:38:59 -0700 |
commit | 33e54da07d024ece1d52041d4ed2bcc28b8cbca3 (patch) | |
tree | 6ee15621fc8aa4dde515beeef447a33cc1ab421b /js/panels/Timeline/Tween.reel | |
parent | aa13b63108d8f4f03af26abe2baa534f24d99192 (diff) | |
download | ninja-33e54da07d024ece1d52041d4ed2bcc28b8cbca3.tar.gz |
Timeline: Ameliorate slowness when adding first keyframe to an element.
Diffstat (limited to 'js/panels/Timeline/Tween.reel')
-rw-r--r-- | js/panels/Timeline/Tween.reel/Tween.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js index 85fdfdc9..d41ad74f 100644 --- a/js/panels/Timeline/Tween.reel/Tween.js +++ b/js/panels/Timeline/Tween.reel/Tween.js | |||
@@ -229,7 +229,13 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
229 | prepareForDraw:{ | 229 | prepareForDraw:{ |
230 | value:function(){ | 230 | value:function(){ |
231 | if(this.initSelect){ | 231 | if(this.initSelect){ |
232 | this.keyframe.selectKeyframe(); | 232 | // Select our new keyframe only if our parent is a main track. |
233 | // TODO: When we decouple all property tracks, this will go away. | ||
234 | if (typeof(this.parentComponent.parentComponent.trackType) === "undefined") { | ||
235 | if (this.tweenID > 0) { | ||
236 | this.keyframe.selectKeyframe(); | ||
237 | } | ||
238 | } | ||
233 | this.initSelect = false; | 239 | this.initSelect = false; |
234 | } | 240 | } |
235 | } | 241 | } |