From 67c03f4ee7b9c15d4608ee7e8ef25e3146a8269b Mon Sep 17 00:00:00 2001 From: quez-fun <54435650+quez-fun@users.noreply.github.com> Date: Fri, 21 Jun 2024 21:38:53 +0800 Subject: [PATCH] Update index.html fixed page zooming problem on iOS safari and disabled temporary mobile console area --- index.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 26dfe57..adabac6 100644 --- a/index.html +++ b/index.html @@ -11,8 +11,9 @@ + @@ -104,7 +105,7 @@ "use strict"; - const tmpConsole = document.getElementById("tmpConsole"); + //const tmpConsole = document.getElementById("tmpConsole"); const topLayer = document.getElementsByClassName("float-on-top")[0]; @@ -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; @@ -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); @@ -797,6 +798,8 @@ topLayer.addEventListener('touchstart', touchstart, false); + document.addEventListener('gesturestart', function(event){event.preventDefault()}, false); +