We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9d3c1a commit cf01056Copy full SHA for cf01056
1 file changed
src/boot/Game.js
@@ -444,6 +444,14 @@ var Game = new Class({
444
this.loop.focus();
445
},
446
447
+ /**
448
+ * Game Resize event.
449
+ *
450
+ * @event Phaser.Game#resizeEvent
451
+ * @param {number} width - The new width of the Game.
452
+ * @param {number} height - The new height of the Game.
453
+ */
454
+
455
/**
456
* Updates the Game Config with the new width and height values given.
457
* Then resizes the Renderer and Input Manager scale.
@@ -462,6 +470,10 @@ var Game = new Class({
462
470
this.renderer.resize(width, height);
463
471
464
472
this.input.resize();
473
474
+ this.scene.resize(width, height);
475
476
+ this.events.emit('resize', width, height);
465
477
466
478
467
479
0 commit comments