Quellcode durchsuchen

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

pull/707/head
Matthew Petroff vor 6 Jahren
Ursprung
Commit
03eb7fa131
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
src/js/pannellum.js Datei anzeigen

@@ -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 {


Laden…
Abbrechen
Speichern