mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
ScaleManager - minor fullscreenerror fixes
- IE9 compatibility (no setWindow arguments) - And removed code that assumpted event.target was the canvas..
This commit is contained in:
parent
9b319019e7
commit
d89c709020
1 changed files with 5 additions and 7 deletions
|
@ -1267,8 +1267,9 @@ Phaser.ScaleManager.prototype = {
|
|||
|
||||
if (!this.supportsFullScreen)
|
||||
{
|
||||
setTimeout(function (scaleManager) {
|
||||
scaleManager.fullScreenError();
|
||||
var _this = this;
|
||||
setTimeout(function () {
|
||||
_this.fullScreenError();
|
||||
}, 10, this);
|
||||
return;
|
||||
}
|
||||
|
@ -1426,11 +1427,8 @@ Phaser.ScaleManager.prototype = {
|
|||
|
||||
this.event = event;
|
||||
|
||||
if (typeof event === 'undefined' || event.target === this.fullScreenTarget)
|
||||
{
|
||||
console.warn("Phaser.ScaleManager: requestFullscreen failed or device does not support the Fullscreen API");
|
||||
this.fullScreenFailed.dispatch();
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue