When switching from one region to another one, the start/end/duration times are wrong.
I guess this is due to the following lines
|
this.updateRender(); |
|
this.fireEvent('update'); |
|
this.wavesurfer.fireEvent('region-updated', this); |
during which the regions are not swapped (in swapRegion) until the end.