diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-06-21 14:20:43 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-06-21 14:20:43 -0700 |
commit | b504cd2b53c2b23224e5f85cc984e796a20d497d (patch) | |
tree | 3fe26baff9326423f2497a1493a718f966cfad8c /src | |
parent | 4071791bab965e65225d69f983a5a38b9dafe2d7 (diff) |
call Module.onFullScreen when going to full screen (allows the app to do custom behavior like adjusting resolution
Diffstat (limited to 'src')
-rw-r--r-- | src/library_browser.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index 9283913f..ec293a13 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -86,6 +86,7 @@ mergeInto(LibraryManager.library, { requestFullScreen: function() { var canvas = Module.canvas; function fullScreenChange() { + if (Module['onFullScreen']) Module['onFullScreen'](); if (document['webkitFullScreenElement'] === canvas || document['mozFullScreenElement'] === canvas || document['fullScreenElement'] === canvas) { |