Browse Source

Show fullscreen button iff fullscreen is allowed.

pull/101/head
Matthew Petroff 9 years ago
parent
commit
605cfba432
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/js/pannellum.js

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

@@ -169,7 +169,8 @@ container.appendChild(controls.zoom);
controls.fullscreen = document.createElement('div');
controls.fullscreen.addEventListener('click', toggleFullscreen);
controls.fullscreen.className = 'pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control';
container.appendChild(controls.fullscreen);
if (document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled)
container.appendChild(controls.fullscreen);

// Compass
var compass = document.createElement('div');


Loading…
Cancel
Save