# HG changeset patch # User Lucas Thompson # Date 1496182873 -3600 # Node ID 44ed7a3916c8441db34a775e432e6a085821efc1 # Parent 3fa0c8cab91915863d703ca1177a7240f126dd6b Remove changes to offset and zoom when adding layer. diff -r 3fa0c8cab919 -r 44ed7a3916c8 src/app/visualisations/waves-base.component.ts --- a/src/app/visualisations/waves-base.component.ts Tue May 30 23:01:12 2017 +0100 +++ b/src/app/visualisations/waves-base.component.ts Tue May 30 23:21:13 2017 +0100 @@ -77,8 +77,6 @@ private resetTimelineState($el: ElementRef): void { const height = $el.nativeElement.getBoundingClientRect().height; - this.timeline.timeContext.offset = - 0.5 * this.timeline.timeContext.visibleDuration; // time axis const timeAxis = new Waves.helpers.TimeAxisLayer({ @@ -96,7 +94,6 @@ track: Track, timeContext: any, isAxis: boolean = false): void { - timeContext.zoom = 1.0; if (!layer.timeContext) { layer.setTimeContext(isAxis ? timeContext : new Waves.core.LayerTimeContext(timeContext));