aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js
index 5410c77c..0a67df43 100644
--- a/js/panels/Timeline/Tween.reel/Tween.js
+++ b/js/panels/Timeline/Tween.reel/Tween.js
@@ -187,6 +187,25 @@ var Tween = exports.Tween = Montage.create(Component, {
187 } 187 }
188 }, 188 },
189 189
190 setAbsoluteTweenProperties:{
191 value:function () {
192 if (this.parentComponent.parentComponent.animatedElement.offsetTop != this.tweenedProperties["top"] && this.parentComponent.parentComponent.animatedElement.offsetLeft != this.tweenedProperties["left"]) {
193 this.tweenedProperties["top"] = this.parentComponent.parentComponent.animatedElement.offsetTop;
194 this.tweenedProperties["left"] = this.parentComponent.parentComponent.animatedElement.offsetLeft;
195 this.parentComponent.parentComponent.updateKeyframeRule();
196 }
197 // highlight the tween's span
198 this.tweenspan.highlightSpan();
199 this.isTweenAnimated = true;
200 }
201 },
202
203 setRelativeTweenProperties:{
204 value:function(){
205
206 }
207 },
208
190 selectTween:{ 209 selectTween:{
191 value: function(){ 210 value: function(){
192 // turn on event listener for element change 211 // turn on event listener for element change