瀏覽代碼

Show fullscreen button iff fullscreen is allowed.

pull/101/head
Matthew Petroff 9 年之前
父節點
當前提交
605cfba432
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/js/pannellum.js

+ 2
- 1
src/js/pannellum.js 查看文件

@@ -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…
取消
儲存