diff options
Diffstat (limited to 'js/panels/Timeline/Keyframe.reel/Keyframe.js')
-rw-r--r-- | js/panels/Timeline/Keyframe.reel/Keyframe.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/panels/Timeline/Keyframe.reel/Keyframe.js b/js/panels/Timeline/Keyframe.reel/Keyframe.js index c8255cc0..f450dd8a 100644 --- a/js/panels/Timeline/Keyframe.reel/Keyframe.js +++ b/js/panels/Timeline/Keyframe.reel/Keyframe.js | |||
@@ -60,6 +60,7 @@ var Keyframe = exports.Keyframe = Montage.create(Component, { | |||
60 | if(this.isSelected){ | 60 | if(this.isSelected){ |
61 | this.element.classList.add("keyframeSelected"); | 61 | this.element.classList.add("keyframeSelected"); |
62 | this.application.ninja.timeline.selectedStyle = this.parentComponent.parentComponent.parentComponent.trackEditorProperty; | 62 | this.application.ninja.timeline.selectedStyle = this.parentComponent.parentComponent.parentComponent.trackEditorProperty; |
63 | console.log(this.application.ninja.timeline.selectedStyle) | ||
63 | }else{ | 64 | }else{ |
64 | this.element.classList.remove("keyframeSelected"); | 65 | this.element.classList.remove("keyframeSelected"); |
65 | this.application.ninja.timeline.selectedStyle = !(this.parentComponent.parentComponent.parentComponent.trackEditorProperty); | 66 | this.application.ninja.timeline.selectedStyle = !(this.parentComponent.parentComponent.parentComponent.trackEditorProperty); |
@@ -70,17 +71,17 @@ var Keyframe = exports.Keyframe = Montage.create(Component, { | |||
70 | 71 | ||
71 | deselectKeyframe:{ | 72 | deselectKeyframe:{ |
72 | value:function(){ | 73 | value:function(){ |
73 | debugger; | ||
74 | this.isSelected=false; | 74 | this.isSelected=false; |
75 | this.element.style.left = (this.position - 5) + "px"; | 75 | this.element.style.left = (this.position - 5) + "px"; |
76 | this.application.ninja.timeline.selectedStyle = !(this.parentComponent.parentComponent.parentComponent.trackEditorProperty) | ||
76 | } | 77 | } |
77 | }, | 78 | }, |
78 | 79 | ||
79 | selectKeyframe:{ | 80 | selectKeyframe:{ |
80 | value:function(){ | 81 | value:function(){ |
81 | debugger; | ||
82 | this.isSelected=true; | 82 | this.isSelected=true; |
83 | this.element.style.left = (this.position - 6) + "px"; | 83 | this.element.style.left = (this.position - 6) + "px"; |
84 | this.application.ninja.timeline.selectedStyle = this.parentComponent.parentComponent.parentComponent.trackEditorProperty | ||
84 | this.parentComponent.selectTween(); | 85 | this.parentComponent.selectTween(); |
85 | } | 86 | } |
86 | }, | 87 | }, |