From c2394cc94877285cb3b5b74f8b3a4b647a9d9f49 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Thu, 15 Aug 2019 16:34:59 -0700 Subject: [PATCH] Update life.js --- data/life/life.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/data/life/life.js b/data/life/life.js index f7a45e22..80c4deb4 100644 --- a/data/life/life.js +++ b/data/life/life.js @@ -175,10 +175,9 @@ function inputCardArtNameNumber(cardArtNameNumberInput) { playerList[parseInt(document.getElementById('inputPlayer').value) - 1].image.src = cardArtUrlList[cardArtNameNumberInput - 1] setTimeout(function(){drawPlayerBox(parseInt(document.getElementById("inputPlayer").value))}, 500) } -// document.getElementById("mainGrid").addEventListener("touchmove", function(event) { -// event.preventDefault() -// console.log("it ran?") -// }, false) +document.getElementById("mainGrid").addEventListener("touchmove", function(event) { + event.preventDefault() +}, false) function rollRNG() { document.getElementById("rngOutput").innerHTML = Math.floor(Math.random() * (parseInt(document.getElementById("inputRNGMax").value) - parseInt(document.getElementById("inputRNGMin").value) + 1) + parseInt(document.getElementById("inputRNGMin").value)) } @@ -320,6 +319,7 @@ function updateMouseCoordinates() { } function endMouseCoordinates() { clearTimeout(loop) + clearTimers() clicking = false } window.addEventListener("touchstart", switchToTouchEvents, true) @@ -351,6 +351,7 @@ function moveTouch() { } function endTouch() { clearTimeout(loop) + clearTimers() if (event.touches.length < 1) { clicking = false }