File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1438,7 +1438,6 @@ var ScaleManager = new Class({
1438
1438
* Calling this method will cancel fullscreen mode, if the browser has entered it.
1439
1439
*
1440
1440
* @method Phaser.Scale.ScaleManager#stopFullscreen
1441
- * @fires Phaser.Scale.Events#LEAVE_FULLSCREEN
1442
1441
* @fires Phaser.Scale.Events#FULLSCREEN_UNSUPPORTED
1443
1442
* @since 3.16.0
1444
1443
*/
@@ -1459,7 +1458,18 @@ var ScaleManager = new Class({
1459
1458
}
1460
1459
1461
1460
this . removeFullscreenTarget ( ) ;
1461
+ } ,
1462
1462
1463
+ /**
1464
+ * The browser has successfully left fullscreen mode.
1465
+ *
1466
+ * @method Phaser.Scale.ScaleManager#leaveFullScreenSuccessHandler
1467
+ * @fires Phaser.Scale.Events#LEAVE_FULLSCREEN
1468
+ * @fires Phaser.Scale.Events#FULLSCREEN_UNSUPPORTED
1469
+ * @since 3.85.0
1470
+ */
1471
+ leaveFullScreenSuccessHandler : function ( )
1472
+ {
1463
1473
// Get the parent size again as it will have changed
1464
1474
this . getParentBounds ( ) ;
1465
1475
@@ -1582,6 +1592,7 @@ var ScaleManager = new Class({
1582
1592
{
1583
1593
// They pressed ESC while in fullscreen mode
1584
1594
this . stopFullscreen ( ) ;
1595
+ this . leaveFullScreenSuccessHandler ( ) ;
1585
1596
}
1586
1597
} ,
1587
1598
You can’t perform that action at this time.
0 commit comments