Added onFocus method docs

This commit is contained in:
Pavle Goloskokovic 2018-01-26 15:18:45 +01:00
parent 5b371db61f
commit 1ca182e209

View file

@ -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;