mirror of
https://github.com/photonstorm/phaser
synced 2025-01-07 02:38:53 +00:00
Resetting already started sounds before unlocking
This commit is contained in:
parent
0b4a8b8b2d
commit
be7741ed89
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ var HTML5AudioSoundManager = new Class({
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
_this.forEachActiveSound(function (sound) {
|
||||||
|
sound.pause();
|
||||||
|
sound.resume();
|
||||||
|
});
|
||||||
};
|
};
|
||||||
document.body.addEventListener('touchend', unlock_1, false);
|
document.body.addEventListener('touchend', unlock_1, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue