Skip to content

Commit 98ae410

Browse files
committed
Removed use of the deprecated enterFullScreen and leaveFullScreen signals from the Scale Manager (thanks @mmanlod phaserjs#1972)
1 parent 9362a2b commit 98ae410

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ If you are an exceptional JavaScript developer and would like to join the Phaser
267267
* InputHandler.pointerOver would get stuck in an 'isOver' state if the Sprite changed its visibility during an onUp callback (thanks @Cristy94 #1955)
268268
* If you override the P2 mpx functions, to define your own px to meters values, the P2 Debug Bodies would ignore it (thanks @vrecluse #1957)
269269
* ArrayUtils.numberArrayStep would return an empty array if a single parameter was given, instead of a single step array (thanks @pooya72 #1958)
270-
* Text with tints applied wouldn't update properly in Canvas mode.
270+
* Removed use of the deprecated `enterFullScreen` and `leaveFullScreen` signals from the Scale Manager (thanks @mmanlod #1972)
271271

272272
For changes in previous releases please see the extensive [Version History](https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md).
273273

src/core/ScaleManager.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,8 +1922,6 @@ Phaser.ScaleManager.prototype = {
19221922

19231923
this.updateLayout();
19241924
this.queueUpdate(true);
1925-
1926-
this.enterFullScreen.dispatch(this.width, this.height);
19271925
}
19281926
else
19291927
{
@@ -1933,11 +1931,9 @@ Phaser.ScaleManager.prototype = {
19331931

19341932
this.updateLayout();
19351933
this.queueUpdate(true);
1936-
1937-
this.leaveFullScreen.dispatch(this.width, this.height);
19381934
}
19391935

1940-
this.onFullScreenChange.dispatch(this);
1936+
this.onFullScreenChange.dispatch(this, this.width, this.height);
19411937

19421938
},
19431939

0 commit comments

Comments
 (0)