aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelineTrack.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel')
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
index e79602e7..e46a5eb0 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
@@ -578,6 +578,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
578 newTween.tweenData.tweenedProperties = []; 578 newTween.tweenData.tweenedProperties = [];
579 newTween.tweenData.tweenedProperties["top"] = this.animatedElement.offsetTop; 579 newTween.tweenData.tweenedProperties["top"] = this.animatedElement.offsetTop;
580 newTween.tweenData.tweenedProperties["left"] = this.animatedElement.offsetLeft; 580 newTween.tweenData.tweenedProperties["left"] = this.animatedElement.offsetLeft;
581 newTween.tweenData.tweenedProperties["width"] = this.animatedElement.offsetWidth;
582 newTween.tweenData.tweenedProperties["height"] = this.animatedElement.offsetHeight;
581 this.tweens.push(newTween); 583 this.tweens.push(newTween);
582 } else { 584 } else {
583 newTween.tweenData.spanWidth = clickPos - this.tweens[this.tweens.length - 1].tweenData.keyFramePosition; 585 newTween.tweenData.spanWidth = clickPos - this.tweens[this.tweens.length - 1].tweenData.keyFramePosition;
@@ -588,6 +590,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
588 newTween.tweenData.tweenedProperties = []; 590 newTween.tweenData.tweenedProperties = [];
589 newTween.tweenData.tweenedProperties["top"] = this.animatedElement.offsetTop; 591 newTween.tweenData.tweenedProperties["top"] = this.animatedElement.offsetTop;
590 newTween.tweenData.tweenedProperties["left"] = this.animatedElement.offsetLeft; 592 newTween.tweenData.tweenedProperties["left"] = this.animatedElement.offsetLeft;
593 newTween.tweenData.tweenedProperties["width"] = this.animatedElement.offsetWidth;
594 newTween.tweenData.tweenedProperties["height"] = this.animatedElement.offsetHeight;
591 this.tweens.push(newTween); 595 this.tweens.push(newTween);
592 596
593 // update the animation duration 597 // update the animation duration