diff options
Diffstat (limited to 'js/panels/Timeline/PropertyTrack.reel')
-rw-r--r-- | js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js index 12e87636..9ee9b922 100644 --- a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js +++ b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | |||
@@ -192,6 +192,11 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { | |||
192 | this.trackID = this.timelineTrack.trackID; | 192 | this.trackID = this.timelineTrack.trackID; |
193 | this.animatedElement = this.timelineTrack.animatedElement; | 193 | this.animatedElement = this.timelineTrack.animatedElement; |
194 | this.ninjaStylesContoller = this.application.ninja.stylesController; | 194 | this.ninjaStylesContoller = this.application.ninja.stylesController; |
195 | |||
196 | // Drag and Drop event handlers | ||
197 | this.element.addEventListener("dragstart", this.handleKeyframeDragstart.bind(this), false); | ||
198 | this.element.addEventListener("dragend", this.handleKeyframeDragstart.bind(this), false); | ||
199 | this.element.addEventListener("drop", this.handleKeyframeDragstart.bind(this), false); | ||
195 | } | 200 | } |
196 | }, | 201 | }, |
197 | 202 | ||
@@ -206,6 +211,13 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { | |||
206 | /* End: Draw Cycle */ | 211 | /* End: Draw Cycle */ |
207 | 212 | ||
208 | /* Begin: Event Handlers */ | 213 | /* Begin: Event Handlers */ |
214 | |||
215 | handleKeyframeDragstart: { | ||
216 | value: function(event) { | ||
217 | event.stopPropagation(); | ||
218 | return false; | ||
219 | } | ||
220 | }, | ||
209 | 221 | ||
210 | handleClick:{ | 222 | handleClick:{ |
211 | value:function (ev) { | 223 | value:function (ev) { |