viewer.js: update onfullscreenchange handler comment

This commit is contained in:
Chris Adams 2013-06-20 15:17:44 -04:00
parent de29a34890
commit 9ef6e085c8

View File

@ -631,9 +631,12 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
if( $.supportsFullScreen ){
THIS[ this.hash ].onfullscreenchange = function() {
// The event object doesn't carry information about the
// fullscreen state of the browser, but it is possible to
// retrieve it through the fullscreen API
/*
fullscreenchange events don't include the new fullscreen status so we need to
retrieve the current status from the fullscreen API. See:
https://developer.mozilla.org/en-US/docs/Web/Reference/Events/fullscreenchange
*/
if( $.isFullScreen() ){
_this.setFullPage( true );
} else {