Skip to content

Commit b9b5489

Browse files
Added touchLocked property to HTML5AudioSoundManager class
1 parent 84a2039 commit b9b5489

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ var HTML5AudioSoundManager = new Class({
4646
* @default []
4747
*/
4848
this.onBlurPausedSounds = [];
49+
/**
50+
* HTML5 Audio streams cannot be loaded unless triggered by explicit user interaction, such as a tap.
51+
* True if the audio system is currently locked awaiting user interaction.
52+
*
53+
* @private
54+
* @property {boolean} touchLocked
55+
*/
56+
this.touchLocked = 'ontouchstart' in window;
4957
/**
5058
* Property that actually holds the value of global mute
5159
* for HTML5 Audio sound manager implementation.

0 commit comments

Comments
 (0)