From 381799b040636a1934585fc1a9a4126bdc2f1f9d Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Sun, 14 Jan 2018 15:36:39 +0100 Subject: [PATCH] Calling sound's onBlur method instead of pause when sounds stop on game focus loss --- src/sound/html5/HTML5AudioSoundManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/html5/HTML5AudioSoundManager.js b/src/sound/html5/HTML5AudioSoundManager.js index 4a9733e71..5ccdcb9d6 100644 --- a/src/sound/html5/HTML5AudioSoundManager.js +++ b/src/sound/html5/HTML5AudioSoundManager.js @@ -76,7 +76,7 @@ var HTML5AudioSoundManager = new Class({ this.forEachActiveSound(function (sound) { if (sound.isPlaying) { this.onBlurPausedSounds.push(sound); - sound.pause(); + sound.onBlur(); } }); },