This commit is contained in:
Kyle
2019-08-18 16:38:51 -07:00
parent b419a89307
commit 32546ad6dd
2 changed files with 11 additions and 3 deletions

View File

@@ -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