From 32546ad6dd2ff2182e5ff9b367db8ed33c1626bd Mon Sep 17 00:00:00 2001
From: Kyle <41976328+ImKyle4815@users.noreply.github.com>
Date: Sun, 18 Aug 2019 16:38:51 -0700
Subject: [PATCH] life
---
data/life/life.js | 9 +++++++++
life.html | 5 ++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/data/life/life.js b/data/life/life.js
index 3acd4da7..2cbb00f6 100644
--- a/data/life/life.js
+++ b/data/life/life.js
@@ -321,4 +321,13 @@ function clockCheck(tappedPlayerBox, lastTapID) {
tappedPlayerBox.holdTime = 0
}
}
+//Hopefully stops the pesky double-tap zoom:
+var doubleTouchStartTimestamp = 0
+document.getElementById("mainGrid").addEventListener("touchstart", function() {
+ var now = +(new Date())
+ if (doubleTouchStartTimestamp + 500 > now){
+ event.preventDefault()
+ }
+ doubleTouchStartTimestamp = now
+})
//Updated :D
diff --git a/life.html b/life.html
index 167fa502..24275789 100644
--- a/life.html
+++ b/life.html
@@ -231,8 +231,8 @@
width: 7.5em;
}
#inputWakeLock {
- position: relative;
- top: -0.2em;
+ /*position: relative;
+ top: -0.2em;*/
margin: 0.25em;
height: auto;
width: auto;
@@ -256,6 +256,5 @@
}
-