diff options
Diffstat (limited to 'js/panels/Timeline/Keyframe.reel/Keyframe.js')
-rw-r--r-- | js/panels/Timeline/Keyframe.reel/Keyframe.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/js/panels/Timeline/Keyframe.reel/Keyframe.js b/js/panels/Timeline/Keyframe.reel/Keyframe.js index f7259d29..5afff6e6 100644 --- a/js/panels/Timeline/Keyframe.reel/Keyframe.js +++ b/js/panels/Timeline/Keyframe.reel/Keyframe.js | |||
@@ -84,7 +84,17 @@ var Keyframe = exports.Keyframe = Montage.create(Component, { | |||
84 | value: function(event) { | 84 | value: function(event) { |
85 | //this.parentComponent.parentComponent.dragLayerID = this.layerID; | 85 | //this.parentComponent.parentComponent.dragLayerID = this.layerID; |
86 | event.dataTransfer.setData('Text', 'Keyframe'); | 86 | event.dataTransfer.setData('Text', 'Keyframe'); |
87 | this.parentComponent.parentComponent.parentComponent.draggingIndex = this.parentComponent.tweenID; | 87 | |
88 | // Get my index in my track's tween array | ||
89 | var i = 0, | ||
90 | tweenRepetitionLength = this.parentComponent.parentComponent.parentComponent.tweenRepetition.childComponents.length, | ||
91 | myIndex = null; | ||
92 | for (i = 0; i < tweenRepetitionLength; i++) { | ||
93 | if (this.parentComponent.parentComponent.parentComponent.tweenRepetition.childComponents[i].uuid === this.parentComponent.uuid) { | ||
94 | myIndex = i; | ||
95 | } | ||
96 | } | ||
97 | this.parentComponent.parentComponent.parentComponent.draggingIndex = myIndex; | ||
88 | } | 98 | } |
89 | }, | 99 | }, |
90 | handleDragend: { | 100 | handleDragend: { |