Browse Source

Implement anonymous8605's viewport fix (#10)

pull/46/head
coomdev 2 years ago
parent
commit
3f167ea40b
  1. 4
      src/Embedding.svelte

4
src/Embedding.svelte

@ -107,8 +107,10 @@
}
}
const getViewport = () => (typeof visualViewport != "undefined" ? () => [visualViewport.width, visualViewport.height] : () => [document.documentElement.clientWidth, document.documentElement.clientHeight])();
function recompute() {
const [sw, sh] = [visualViewport.width, visualViewport.height]
const [sw, sh] = getViewport();
let [iw, ih] = [0, 0]
if (isImage) {

Loading…
Cancel
Save