From d73208349fd5a9f66504857d88289937d2d09ddb Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 3 Jan 2018 21:27:09 +0100 Subject: [PATCH] Dispatching event when sound seek changes --- v3/src/sound/webaudio/WebAudioSound.js | 1 + 1 file changed, 1 insertion(+) diff --git a/v3/src/sound/webaudio/WebAudioSound.js b/v3/src/sound/webaudio/WebAudioSound.js index 9f09b4a35..8aa22d6f8 100644 --- a/v3/src/sound/webaudio/WebAudioSound.js +++ b/v3/src/sound/webaudio/WebAudioSound.js @@ -406,6 +406,7 @@ Object.defineProperty(WebAudioSound.prototype, 'seek', { if (this.isPlaying || this.isPaused) { value = Math.min(Math.max(0, value), this.duration); this.currentConfig.seek = value; + this.events.dispatch(new SoundValueEvent(this, 'SOUND_SEEK', value)); } if (this.isPlaying) { this.stopAndRemoveBufferSource();