瀏覽代碼

Fix interaction between F11 and API fullscreens in Chrome (fixes #696).

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

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

@@ -480,10 +480,10 @@ function onImageLoad() {
if (config.doubleClickZoom) {
dragFix.addEventListener('dblclick', onDocumentDoubleClick, false);
}
uiContainer.addEventListener('mozfullscreenchange', onFullScreenChange, false);
uiContainer.addEventListener('webkitfullscreenchange', onFullScreenChange, false);
uiContainer.addEventListener('msfullscreenchange', onFullScreenChange, false);
uiContainer.addEventListener('fullscreenchange', onFullScreenChange, false);
container.addEventListener('mozfullscreenchange', onFullScreenChange, false);
container.addEventListener('webkitfullscreenchange', onFullScreenChange, false);
container.addEventListener('msfullscreenchange', onFullScreenChange, false);
container.addEventListener('fullscreenchange', onFullScreenChange, false);
window.addEventListener('resize', onDocumentResize, false);
window.addEventListener('orientationchange', onDocumentResize, false);
if (!config.disableKeyboardCtrl) {


Loading…
取消
儲存