瀏覽代碼

Merge cd915ecc50 into bda0aa7b3b

pull/156/merge
mzoeller 7 年之前
committed by GitHub
父節點
當前提交
9661e4a2af
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/js/pannellum.js

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

@@ -1993,6 +1993,8 @@ function onFullScreenChange() {
if (document.fullscreen || document.mozFullScreen || document.webkitIsFullScreen || document.msFullscreenElement) {
controls.fullscreen.classList.add('pnlm-fullscreen-toggle-button-active');
fullscreenActive = true;
// Fix wrong aspect ration on OS X Safari: https://github.com/mpetroff/pannellum/issues/155
renderer.resize(); render();
} else {
controls.fullscreen.classList.remove('pnlm-fullscreen-toggle-button-active');
fullscreenActive = false;


Loading…
取消
儲存