mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Added onFocus method docs
This commit is contained in:
parent
5b371db61f
commit
1ca182e209
1 changed files with 7 additions and 0 deletions
|
@ -279,6 +279,13 @@ var HTML5AudioSound = new Class({
|
|||
this.currentConfig.delay = Math.max(0, (this.startTime - window.performance.now()) / 1000);
|
||||
this.stopAndReleaseAudioTag();
|
||||
},
|
||||
/**
|
||||
* Method used internally by sound manager for resuming sound if
|
||||
* Phaser.Sound.HTML5AudioSoundManager#pauseOnBlur is set to true.
|
||||
*
|
||||
* @private
|
||||
* @method Phaser.Sound.HTML5AudioSound#onFocus
|
||||
*/
|
||||
onFocus: function () {
|
||||
this.isPlaying = true;
|
||||
this.isPaused = false;
|
||||
|
|
Loading…
Reference in a new issue