Skip to content

Commit ac9c9a1

Browse files
committed
Fixed the assignment of the fullScreenTarget so FS mode works again now.
1 parent 67f1471 commit ac9c9a1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/core/ScaleManager.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Phaser.ScaleManager = function (game, width, height) {
121121
* Note that if you use a scale property of EXACT_FIT then fullScreenTarget will have its width and height style set to 100%.
122122
* @property {any} fullScreenTarget
123123
*/
124-
this.fullScreenTarget = this.game.canvas;
124+
this.fullScreenTarget = null;
125125

126126
/**
127127
* @property {Phaser.Signal} enterFullScreen - The event that is dispatched when the browser enters full screen mode (if it supports the FullScreen API).
@@ -413,6 +413,9 @@ Phaser.ScaleManager.prototype = {
413413
*/
414414
boot: function () {
415415

416+
// Now the canvas has been created we can target it
417+
this.fullScreenTarget = this.game.canvas;
418+
416419
var _this = this;
417420

418421
this._checkOrientation = function(event) {

0 commit comments

Comments
 (0)