diff options
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index bc474a46..1d22c109 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -137,10 +137,33 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
137 | } | 137 | } |
138 | }, | 138 | }, |
139 | 139 | ||
140 | millisecondsOffset:{ | 140 | _millisecondsOffset:{ |
141 | value:1000 | 141 | value:1000 |
142 | }, | 142 | }, |
143 | 143 | ||
144 | millisecondsOffset:{ | ||
145 | get:function () { | ||
146 | return this._millisecondsOffset; | ||
147 | }, | ||
148 | set:function (newVal) { | ||
149 | if (newVal !== this._millisecondsOffset) { | ||
150 | this._millisecondsOffset= newVal; | ||
151 | this.drawTimeMarkers(); | ||
152 | NJevent('tlZoomSlider',this); | ||
153 | } | ||
154 | } | ||
155 | }, | ||
156 | |||
157 | tweenarray:{ | ||
158 | value:[], | ||
159 | writable:true | ||
160 | }, | ||
161 | |||
162 | tempArray:{ | ||
163 | value:[], | ||
164 | writable:true | ||
165 | }, | ||
166 | |||
144 | _masterDuration:{ | 167 | _masterDuration:{ |
145 | serializable:true, | 168 | serializable:true, |
146 | value:0 | 169 | value:0 |
@@ -686,6 +709,11 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
686 | drawTimeMarkers:{ | 709 | drawTimeMarkers:{ |
687 | value:function () { | 710 | value:function () { |
688 | this.timeMarkerHolder = document.createElement("div"); | 711 | this.timeMarkerHolder = document.createElement("div"); |
712 | |||
713 | if(this.time_markers.children[0]){ | ||
714 | this.time_markers.removeChild(this.time_markers.children[0]); | ||
715 | } | ||
716 | |||
689 | this.time_markers.appendChild(this.timeMarkerHolder); | 717 | this.time_markers.appendChild(this.timeMarkerHolder); |
690 | var i; | 718 | var i; |
691 | var totalMarkers = Math.floor(this.time_markers.offsetWidth / 80); | 719 | var totalMarkers = Math.floor(this.time_markers.offsetWidth / 80); |