diff options
Diffstat (limited to 'js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js')
-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 8c8112ad..e5ff1e95 100644 --- a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js +++ b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | |||
@@ -193,6 +193,11 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { | |||
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 | this.eventManager.addEventListener("tlZoomSlider", this, false); | 195 | this.eventManager.addEventListener("tlZoomSlider", this, false); |
196 | |||
197 | // Drag and Drop event handlers | ||
198 | this.element.addEventListener("dragstart", this.handleKeyframeDragstart.bind(this), false); | ||
199 | this.element.addEventListener("dragend", this.handleKeyframeDragstart.bind(this), false); | ||
200 | this.element.addEventListener("drop", this.handleKeyframeDragstart.bind(this), false); | ||
196 | } | 201 | } |
197 | }, | 202 | }, |
198 | 203 | ||
@@ -207,6 +212,13 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { | |||
207 | /* End: Draw Cycle */ | 212 | /* End: Draw Cycle */ |
208 | 213 | ||
209 | /* Begin: Event Handlers */ | 214 | /* Begin: Event Handlers */ |
215 | |||
216 | handleKeyframeDragstart: { | ||
217 | value: function(event) { | ||
218 | event.stopPropagation(); | ||
219 | return false; | ||
220 | } | ||
221 | }, | ||
210 | 222 | ||
211 | handleClick:{ | 223 | handleClick:{ |
212 | value:function (ev) { | 224 | value:function (ev) { |