Skip to content

Commit 381799b

Browse files
Calling sound's onBlur method instead of pause when sounds stop on game focus loss
1 parent 5c5df3f commit 381799b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var HTML5AudioSoundManager = new Class({
7676
this.forEachActiveSound(function (sound) {
7777
if (sound.isPlaying) {
7878
this.onBlurPausedSounds.push(sound);
79-
sound.pause();
79+
sound.onBlur();
8080
}
8181
});
8282
},

0 commit comments

Comments
 (0)