浏览代码

Fix fullscreen in Safari (fixes #155).

pull/160/head
Matthew Petroff 8 年前
父节点
当前提交
d1615f4b6a
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. +8
    -4
      src/js/pannellum.js

+ 8
- 4
src/js/pannellum.js 查看文件

@@ -1111,10 +1111,10 @@ function keyRepeat() {
* @private
*/
function onDocumentResize() {
// Resize panorama renderer
renderer.resize();
animateInit();
// Resize panorama renderer (moved to onFullScreenChange)
//renderer.resize();
//animateInit();
// Kludge to deal with WebKit regression: https://bugs.webkit.org/show_bug.cgi?id=93525
onFullScreenChange();
}
@@ -1684,6 +1684,10 @@ function onFullScreenChange() {
controls.fullscreen.classList.remove('pnlm-fullscreen-toggle-button-active');
fullscreenActive = false;
}

// Resize renderer (deal with browser quirks and fixes #155)
renderer.resize();
animateInit();
}

/**


正在加载...
取消
保存