mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
Added a fix for fullscreen scaling in firefox.
This commit is contained in:
@@ -18,7 +18,7 @@ function create() {
|
||||
// Keep original size
|
||||
// game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE;
|
||||
// Maintain aspect ratio
|
||||
game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE;
|
||||
game.stage.fullScreenScaleMode = Phaser.StageScaleMode.SHOW_ALL;
|
||||
|
||||
game.input.onDown.add(gofull, this);
|
||||
|
||||
|
||||
@@ -268,7 +268,7 @@ Phaser.StageScaleMode.prototype = {
|
||||
}
|
||||
else if (element['mozRequestFullScreen'])
|
||||
{
|
||||
element['mozRequestFullScreen']();
|
||||
element.parentNode['mozRequestFullScreen']();
|
||||
}
|
||||
else if (element['webkitRequestFullScreen'])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user