From 5392742c77a13a1328f69178bc1b43a7e8340060 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Thu, 15 Aug 2019 17:22:30 -0700 Subject: [PATCH] Update life.js --- data/life/life.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/data/life/life.js b/data/life/life.js index 17ccb9fe..2d40f7d3 100644 --- a/data/life/life.js +++ b/data/life/life.js @@ -332,11 +332,11 @@ function switchToTouchEvents() { window.addEventListener("touchend", endTouch, true) } function startTouch() { - touchX = [], touchY = [] - for (var i = 0; i < event.touches.length; i ++) { - touchX[i] = event.touches[i].clientX - touchY[i] = event.touches[i].clientY - } + // touchX = [], touchY = [] + // for (var i = 0; i < event.touches.length; i ++) { + // touchX[i] = event.touches[i].clientX + // touchY[i] = event.touches[i].clientY + // } if (event.touches.length > 0) { if (!clicking) { updatePlayerBoxes() @@ -352,11 +352,11 @@ function moveTouch() { } } function endTouch() { - touchX = [], touchY = [] - for (var i = 0; i < event.touches.length; i ++) { - touchX[i] = event.touches[i].clientX - touchY[i] = event.touches[i].clientY - } + // touchX = [], touchY = [] + // for (var i = 0; i < event.touches.length; i ++) { + // touchX[i] = event.touches[i].clientX + // touchY[i] = event.touches[i].clientY + // } if (event.touches.length < 1) { clicking = false clearTimeout(loop)