Update life.js

This commit is contained in:
Kyle
2019-08-11 19:34:22 -07:00
parent 990c1e5a63
commit 57929cdba1

View File

@@ -246,6 +246,7 @@ function switchToTouchEvents() {
for (var i = 0; i < event.touches.length; i ++) { for (var i = 0; i < event.touches.length; i ++) {
mouseDownPlayerBox(this, event.touches[i].clientX, event.touches[i].clientY) mouseDownPlayerBox(this, event.touches[i].clientX, event.touches[i].clientY)
} }
window.scrollTo(0, 0)
}, true) }, true)
playerList[i - 1].canvas.addEventListener("touchend", function() { playerList[i - 1].canvas.addEventListener("touchend", function() {
mouseUpPlayerBox(this) mouseUpPlayerBox(this)