diff --git a/index.html b/index.html
index 1b974c7..9383799 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,7 @@
touch grass
-
+
@@ -15,6 +15,10 @@
--background: url(assets/grass.png);
}
+ * {
+ touch-action: manipulation;
+ }
+
body {
background: var(--background) !important;
background-size: cover !important;
@@ -226,6 +230,15 @@
);
};
+ let lastTap = 0;
+ document.addEventListener("touchend", (e) => {
+ const now = Date.now();
+ if (now - lastTap < 500 && now - lastTap > 0) {
+ e.preventDefault();
+ }
+ lastTap = now;
+ }, { passive: false });
+
document.body.addEventListener("pointerdown", (e) => {
e.preventDefault();
const center = { x: e.pageX, y: e.pageY };