Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorin-Oakenpants authored Sep 7, 2023
1 parent 0559a32 commit 9c6e82d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions vvscale.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
<title>vvscale</title>
<style>
.mono {font-family: monospace, "Courier New"; font-size: 16px;}
.big {font-size: 48px;}
.big {font-size: 32px;}
div.fixed {
position: fixed;
top: 10;
left: 10;
}
</style>
</head>

<body>
<br>
<span class="mono">
visualViewport.scale<br><span class="big" id="vvscale"></span>
</span>
<div class="fixed">
visualViewport.scale<br><span class="big mono" id="vvscale"></span>
</div>

<script>
'use strict';
Expand All @@ -28,6 +32,7 @@
}

try {
// event fires with normal zoom and pinch to zoom
visualViewport.onresize = () => {
get_scale()
}
Expand Down

0 comments on commit 9c6e82d

Please sign in to comment.