Mercurial > hg > ugly-duckling
diff src/app/waveform/waveform.component.ts @ 336:9f6131d22bec
Call animate when rendering a feature so that the play head animates.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 19 May 2017 14:14:33 +0100 |
parents | e213fdc33f46 |
children | 097d93b11445 |
line wrap: on
line diff
--- a/src/app/waveform/waveform.component.ts Fri May 19 13:47:58 2017 +0100 +++ b/src/app/waveform/waveform.component.ts Fri May 19 14:14:33 2017 +0100 @@ -227,7 +227,7 @@ this.timeline = undefined; this.cursorLayer = undefined; this.highlightLayer = undefined; - this.isPlaying = false; + this.isPlaying = this.audioService.isPlaying(); this.isLoading = true; } @@ -869,6 +869,7 @@ this.isLoading = false; this.ref.markForCheck(); this.timeline.tracks.update(); + this.animate(); } private animate(): void {