Fix bug when overwriting existing outro region.

This commit is contained in:
Matthew Stratford 2020-09-23 00:09:28 +01:00
parent 931863d937
commit b2ec00c1dd

View file

@ -102,7 +102,7 @@ class Player extends ((PlayerEmitter as unknown) as { new (): EventEmitter }) {
if (startTime === 0) { if (startTime === 0) {
delete this.wavesurfer.regions.list.outro; delete this.wavesurfer.regions.list.outro;
} else { } else {
this.wavesurfer.regions.list.outro.end = startTime; this.wavesurfer.regions.list.outro.start = startTime;
} }
this.redraw(); this.redraw();