aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Keyframe.reel/Keyframe.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/Keyframe.reel/Keyframe.js')
-rw-r--r--js/panels/Timeline/Keyframe.reel/Keyframe.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/panels/Timeline/Keyframe.reel/Keyframe.js b/js/panels/Timeline/Keyframe.reel/Keyframe.js
index 1d79efc3..201b912c 100644
--- a/js/panels/Timeline/Keyframe.reel/Keyframe.js
+++ b/js/panels/Timeline/Keyframe.reel/Keyframe.js
@@ -70,7 +70,7 @@ var Keyframe = exports.Keyframe = Montage.create(Component, {
70 prepareForDraw:{ 70 prepareForDraw:{
71 value:function(){ 71 value:function(){
72 this.element.addEventListener("click", this, false); 72 this.element.addEventListener("click", this, false);
73 73
74 // Drag and drop event handlers 74 // Drag and drop event handlers
75 this.element.addEventListener("mouseover", this.handleMouseover.bind(this), false); 75 this.element.addEventListener("mouseover", this.handleMouseover.bind(this), false);
76 this.element.addEventListener("mouseout", this.handleMouseout.bind(this), false); 76 this.element.addEventListener("mouseout", this.handleMouseout.bind(this), false);
@@ -124,7 +124,7 @@ var Keyframe = exports.Keyframe = Montage.create(Component, {
124 ev.stopPropagation(); 124 ev.stopPropagation();
125 } 125 }
126 }, 126 },
127 127
128 handleMouseover: { 128 handleMouseover: {
129 value: function(event) { 129 value: function(event) {
130 this.element.draggable = true; 130 this.element.draggable = true;
@@ -139,7 +139,7 @@ var Keyframe = exports.Keyframe = Montage.create(Component, {
139 value: function(event) { 139 value: function(event) {
140 //this.parentComponent.parentComponent.dragLayerID = this.layerID; 140 //this.parentComponent.parentComponent.dragLayerID = this.layerID;
141 event.dataTransfer.setData('Text', 'Keyframe'); 141 event.dataTransfer.setData('Text', 'Keyframe');
142 142
143 // Get my index in my track's tween array 143 // Get my index in my track's tween array
144 var i = 0, 144 var i = 0,
145 tweenRepetitionLength = this.parentComponent.parentComponent.parentComponent.tweenRepetition.childComponents.length, 145 tweenRepetitionLength = this.parentComponent.parentComponent.parentComponent.tweenRepetition.childComponents.length,
@@ -158,5 +158,5 @@ var Keyframe = exports.Keyframe = Montage.create(Component, {
158 this.parentComponent.isDragging = false; 158 this.parentComponent.isDragging = false;
159 } 159 }
160 } 160 }
161 161
162}); 162});