From 0fa8b899d4e636bedaaa6784129c21864e8ef596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Diedrich?= Date: Thu, 2 Sep 2021 16:21:36 +0200 Subject: [PATCH] handle touch --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index b11f74c..a9d6c0b 100644 --- a/main.js +++ b/main.js @@ -179,4 +179,5 @@ function doZoom(e) { container.scale.y = -zoom; // Note: we flip the y axis to make "up" the physics } window.addEventListener('wheel', doZoom) -window.addEventListener('click', randomBox) \ No newline at end of file +window.addEventListener('click', randomBox) +window.addEventListener('touchstart', randomBox) \ No newline at end of file