Browse Source

Add check for `document.fullscreenElement` since `document.fullscreen` is deprecated.

pull/707/head
Matthew Petroff 6 years ago
parent
commit
03eb7fa131
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
src/js/pannellum.js View File

@@ -2106,7 +2106,7 @@ function toggleFullscreen() {
* @private
*/
function onFullScreenChange(resize) {
if (document.fullscreen || document.mozFullScreen || document.webkitIsFullScreen || document.msFullscreenElement) {
if (document.fullscreenElement || document.fullscreen || document.mozFullScreen || document.webkitIsFullScreen || document.msFullscreenElement) {
controls.fullscreen.classList.add('pnlm-fullscreen-toggle-button-active');
fullscreenActive = true;
} else {


Loading…
Cancel
Save