diff options
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html | 2 | ||||
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 18 | ||||
-rwxr-xr-x | js/panels/Timeline/TimelinePanel.reel/images/knob.png | bin | 0 -> 1036 bytes | |||
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/scss/TimelinePanel.scss | 23 |
4 files changed, 43 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html index 57285704..9ae5d3d5 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html | |||
@@ -216,7 +216,9 @@ POSSIBILITY OF SUCH DAMAGE. | |||
216 | </div> | 216 | </div> |
217 | 217 | ||
218 | <div data-montage-id="timeline_gutter" class="timelinegutter"> | 218 | <div data-montage-id="timeline_gutter" class="timelinegutter"> |
219 | <div class="sliderClass"> | ||
219 | <div data-montage-id="tl_slider" class="tl_slider"></div> | 220 | <div data-montage-id="tl_slider" class="tl_slider"></div> |
221 | </div> | ||
220 | <input data-montage-id="end_hottext" class="endhottext"> | 222 | <input data-montage-id="end_hottext" class="endhottext"> |
221 | </div> | 223 | </div> |
222 | </div> | 224 | </div> |
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index aafc3d1d..981ddc22 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -505,11 +505,13 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
505 | }, | 505 | }, |
506 | millisecondsOffset:{ | 506 | millisecondsOffset:{ |
507 | get:function () { | 507 | get:function () { |
508 | |||
508 | return this._millisecondsOffset; | 509 | return this._millisecondsOffset; |
509 | }, | 510 | }, |
510 | set:function (newVal) { | 511 | set:function (newVal) { |
511 | if (newVal !== this._millisecondsOffset) { | 512 | if (newVal !== this._millisecondsOffset) { |
512 | 513 | ||
514 | this.tempValue = newVal; | ||
513 | var tempValue = (1/newVal) * 1000000; | 515 | var tempValue = (1/newVal) * 1000000; |
514 | newVal = tempValue; | 516 | newVal = tempValue; |
515 | 517 | ||
@@ -1695,6 +1697,22 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
1695 | } | 1697 | } |
1696 | }, | 1698 | }, |
1697 | 1699 | ||
1700 | zoomTrackContainerWidthChange:{ | ||
1701 | value:function () { | ||
1702 | |||
1703 | this.tempValue = this.tempValue/1000; | ||
1704 | this.tempValue *= 30; | ||
1705 | |||
1706 | this.container_tracks.style.width = (this.tempValue * 80) + "px"; | ||
1707 | this.master_track.style.width = (this.tempValue * 80) + "px"; | ||
1708 | this.time_markers.style.width = (this.tempValue * 80) + "px"; | ||
1709 | if (this.timeMarkerHolder) { | ||
1710 | this.time_markers.removeChild(this.timeMarkerHolder); | ||
1711 | } | ||
1712 | this.drawTimeMarkers(); | ||
1713 | } | ||
1714 | }, | ||
1715 | |||
1698 | handleLayerScroll: { | 1716 | handleLayerScroll: { |
1699 | value:function () { | 1717 | value:function () { |
1700 | this._areTracksScrolling = true; | 1718 | this._areTracksScrolling = true; |
diff --git a/js/panels/Timeline/TimelinePanel.reel/images/knob.png b/js/panels/Timeline/TimelinePanel.reel/images/knob.png new file mode 100755 index 00000000..ecfbfcec --- /dev/null +++ b/js/panels/Timeline/TimelinePanel.reel/images/knob.png | |||
Binary files differ | |||
diff --git a/js/panels/Timeline/TimelinePanel.reel/scss/TimelinePanel.scss b/js/panels/Timeline/TimelinePanel.reel/scss/TimelinePanel.scss index 4fbcc400..d3529444 100644 --- a/js/panels/Timeline/TimelinePanel.reel/scss/TimelinePanel.scss +++ b/js/panels/Timeline/TimelinePanel.reel/scss/TimelinePanel.scss | |||
@@ -396,3 +396,26 @@ POSSIBILITY OF SUCH DAMAGE. | |||
396 | .layer-hidden { | 396 | .layer-hidden { |
397 | display: none; | 397 | display: none; |
398 | } | 398 | } |
399 | |||
400 | .tl_slider { | ||
401 | width: 127px; | ||
402 | height:5px; | ||
403 | float: left; | ||
404 | clear: none; | ||
405 | margin: 2px 0px 0px 0px; | ||
406 | } | ||
407 | |||
408 | .slider-track { | ||
409 | background: #29292; | ||
410 | width: 127px | ||
411 | }, | ||
412 | |||
413 | .sliderClass { | ||
414 | float: left; | ||
415 | width: 127px | ||
416 | } | ||
417 | |||
418 | .sliderClass .knob { | ||
419 | background: url(../images/knob.png) no-repeat transparent center center; | ||
420 | margin-bottom: 2px; | ||
421 | } | ||