Commit 5974db37 authored by shiyunjie's avatar shiyunjie

禁用容器的缩放手势,防止容器发达后影响pdf滚动

parent f7e7b04a
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
} }
window.onload = () => { window.onload = () => {
document.documentElement.addEventListener('gesturestart', function(e) { e.preventDefault(); });
function setSrc() { function setSrc() {
let dom = document.getElementById('myIframe'); let dom = document.getElementById('myIframe');
let server = './iframe/web/viewer.html'; // pdf地址 let server = './iframe/web/viewer.html'; // pdf地址
......
...@@ -168,6 +168,7 @@ See https://github.com/adobe-type-tools/cmap-resources ...@@ -168,6 +168,7 @@ See https://github.com/adobe-type-tools/cmap-resources
} }
}); });
} }
document.documentElement.addEventListener('gesturestart', function(e) { e.preventDefault(); });
</script> </script>
<body tabindex="1" class="loadingInProgress"> <body tabindex="1" class="loadingInProgress">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment