We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2231632 commit 5987cbfCopy full SHA for 5987cbf
cocos2d/core/platform/CCScreen.js
@@ -92,7 +92,7 @@ cc.screen = /** @lends cc.screen# */{
92
}
93
94
95
- this._supportsFullScreen = (this._fn.requestFullscreen != undefined);
+ this._supportsFullScreen = (this._fn.requestFullscreen != undefined);
96
this._touchEvent = ('ontouchstart' in window) ? 'touchstart' : 'mousedown';
97
},
98
@@ -101,7 +101,7 @@ cc.screen = /** @lends cc.screen# */{
101
* @returns {Boolean}
102
*/
103
fullScreen: function() {
104
- return this._supportsFullScreen && document[ this._fn.fullscreenEnabled ];
+ return this._supportsFullScreen && document[this._fn.fullscreenElement];
105
106
107
/**
0 commit comments