Skip to content

Commit 0a761e1

Browse files
committed
Added new arguments to RESIZE event
1 parent 89fe081 commit 0a761e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/scale/events/RESIZE_EVENT.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
* @param {Phaser.Structs.Size} gameSize - A reference to the Game Size component. This is the un-scaled size of your game canvas.
1919
* @param {Phaser.Structs.Size} baseSize - A reference to the Base Size component. This is the game size multiplied by resolution.
2020
* @param {Phaser.Structs.Size} displaySize - A reference to the Display Size component. This is the scaled canvas size, after applying zoom and scale mode.
21+
* @param {number} resolution - The current resolution. Defaults to 1 at the moment.
22+
* @param {number} previousWidth - If the `gameSize` has changed, this value contains its previous width, otherwise it contains the current width.
23+
* @param {number} previousHeight - If the `gameSize` has changed, this value contains its previous height, otherwise it contains the current height.
2124
*/
2225
module.exports = 'resize';

0 commit comments

Comments
 (0)