Skip to content

Commit d732083

Browse files
Dispatching event when sound seek changes
1 parent dc79646 commit d732083

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ Object.defineProperty(WebAudioSound.prototype, 'seek', {
406406
if (this.isPlaying || this.isPaused) {
407407
value = Math.min(Math.max(0, value), this.duration);
408408
this.currentConfig.seek = value;
409+
this.events.dispatch(new SoundValueEvent(this, 'SOUND_SEEK', value));
409410
}
410411
if (this.isPlaying) {
411412
this.stopAndRemoveBufferSource();

0 commit comments

Comments
 (0)