Is wavesurfer.stop() supposed to emit a 'region-out' event? #3814
-
I'm seeing some strange behavior and before I report it as a bug I'm seeking some feedback here. I'm using Play and Stop buttons to play/stop the audio. I'm also using a single region as a loop section. Play -> Normal behavior (from init before dragging the region): Weird behavior (after dragging the region): If I don't loop the region using the It seems like Can anyone reproduce this? It's driving me a bit nutty 😜 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Could you create a reproducible example in this sandbox – https://wavesurfer.xyz/examples/ – and paste the code here? |
Beta Was this translation helpful? Give feedback.
-
@katspaugh Were you able to reproduce this? |
Beta Was this translation helpful? Give feedback.
I'm seeing this behavior in your example, yes. I think the problem is that
stop()
goes to the beginning of the audio and thus triggers a region-out event. You could usepause()
instead, the playhead will then stay where it was.