Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
fixed page zooming problem on iOS safari and disabled temporary mobile console area
  • Loading branch information
quez-fun authored Jun 21, 2024
1 parent 70d2344 commit 67c03f4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@

<body>

<!--
<div>temporary mobile console area:<div id="tmpConsole"></div>
</div>
</div>-->

<span class="tag">
<a href="">
Expand Down Expand Up @@ -104,7 +105,7 @@

"use strict";

const tmpConsole = document.getElementById("tmpConsole");
//const tmpConsole = document.getElementById("tmpConsole");

const topLayer = document.getElementsByClassName("float-on-top")[0];

Expand Down Expand Up @@ -705,7 +706,7 @@
const deltaY = e.targetTouches[0].pageY - e.targetTouches[1].pageY;
delta0 = Math.sqrt(deltaX * deltaX + deltaY * deltaY);

tmpConsole.innerText = delta0;
//tmpConsole.innerText = delta0;

break;

Expand Down Expand Up @@ -753,7 +754,7 @@

radius = Math.min(300, Math.max(radius, 120));

tmpConsole.innerText = radius;
//tmpConsole.innerText = radius;

cameraPosition[0] = radius * Math.cos(rad);
cameraPosition[2] = radius * Math.sin(rad);
Expand Down Expand Up @@ -797,6 +798,8 @@

topLayer.addEventListener('touchstart', touchstart, false);

document.addEventListener('gesturestart', function(event){event.preventDefault()}, false);

</script>


Expand Down

0 comments on commit 67c03f4

Please sign in to comment.