Skip to content

Commit

Permalink
Merge c417321 into f99f40b
Browse files Browse the repository at this point in the history
  • Loading branch information
rsinghal committed May 6, 2016
2 parents f99f40b + c417321 commit 63d5410
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@

jQuery(document).on("webkitfullscreenchange mozfullscreenchange fullscreenchange", function() {
jQuery.publish('MAINMENU_FULLSCREEN_BUTTON');
// in case the user clicked ESC instead of clicking on the toggle fullscreen button, reenable the window fullscreen button
if (!$.fullscreenElement()) {
jQuery.publish('ENABLE_WINDOW_FULLSCREEN');
}
});

jQuery.subscribe('TOGGLE_LOAD_WINDOW', function(event) {
Expand Down

0 comments on commit 63d5410

Please sign in to comment.