From 529c051cc94d09531d41846b98a311f31a9c6b8f Mon Sep 17 00:00:00 2001 From: quez-fun <54435650+quez-fun@users.noreply.github.com> Date: Sun, 16 Jun 2024 16:45:53 +0800 Subject: [PATCH] Update exhibition_booth.html --- exhibition_booth.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/exhibition_booth.html b/exhibition_booth.html index 6eb1469..6faa564 100644 --- a/exhibition_booth.html +++ b/exhibition_booth.html @@ -49,6 +49,9 @@ +
temporary mobile console area:
+
+
Exhibition Booth
@@ -107,6 +110,8 @@ function main() { + const tmpConsole = document.getElementById("tmpConsole"); + let x1 = 0, x2 = 0, y1 = 0, y2 = 0, delta0, delta1; //内容区 @@ -658,6 +663,8 @@ const deltaY = e.targetTouches[0].pageY - e.targetTouches[1].pageY; delta0 = Math.sqrt(deltaX * deltaX + deltaY * deltaY); + tmpConsole.innerText = delta0; + break; } @@ -710,6 +717,7 @@ radius -= (delta1-delta0); radius = Math.min(60, Math.max(1, radius)); + tmpConsole.innerText = radius; cameraPosition[2] = radius; target = [0, 0, 0]; var cameraMatrix = m4.lookAt(cameraPosition, target, up, m4.identity());