mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-20 01:31:45 +03:00
viewer.js: update onfullscreenchange handler comment
This commit is contained in:
parent
de29a34890
commit
9ef6e085c8
@ -631,9 +631,12 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
|
|||||||
|
|
||||||
if( $.supportsFullScreen ){
|
if( $.supportsFullScreen ){
|
||||||
THIS[ this.hash ].onfullscreenchange = function() {
|
THIS[ this.hash ].onfullscreenchange = function() {
|
||||||
// The event object doesn't carry information about the
|
/*
|
||||||
// fullscreen state of the browser, but it is possible to
|
fullscreenchange events don't include the new fullscreen status so we need to
|
||||||
// retrieve it through the fullscreen API
|
retrieve the current status from the fullscreen API. See:
|
||||||
|
https://developer.mozilla.org/en-US/docs/Web/Reference/Events/fullscreenchange
|
||||||
|
*/
|
||||||
|
|
||||||
if( $.isFullScreen() ){
|
if( $.isFullScreen() ){
|
||||||
_this.setFullPage( true );
|
_this.setFullPage( true );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user