Skip to content

Commit

Permalink
remove extra info
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 10, 2025
1 parent 5bb1f8e commit 30124d5
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
width: 100%; /* make the canvas fill its container */
height: 100%;
}
pre {
margin: 0;
}
#ui {
position: absolute;
left: 0;
Expand Down Expand Up @@ -106,11 +109,11 @@
renderCount: ${++renderCount}
devicePixelRatio: ${devicePixelRatio}
canvas size: ${canvas.width}x${canvas.height}
visualViewport.scale: ${visualViewport.scale}
visualViewport.offset: ${visualViewport.offsetLeft}, ${visualViewport.offsetTop}
visualViewport.page: ${visualViewport.pageLeft}, ${visualViewport.pageTop}
visualViewport.size: ${visualViewport.width}, ${visualViewport.height}
`;
visualViewport.scale: ${visualViewport.scale}`;
//visualViewport.offset: ${visualViewport.offsetLeft}, ${visualViewport.offsetTop}
// visualViewport.page: ${visualViewport.pageLeft}, ${visualViewport.pageTop}
// visualViewport.size: ${visualViewport.width}, ${visualViewport.height}
//`;

ui.style.left = `${visualViewport.offsetLeft * visualViewport.scale}px`;
ui.style.top = `${visualViewport.offsetTop * visualViewport.scale}px`;
Expand Down

0 comments on commit 30124d5

Please sign in to comment.