Update life.js

This commit is contained in:
Kyle
2019-08-16 14:15:59 -07:00
parent eb47b5afdb
commit ec8d1916a9

View File

@@ -313,6 +313,7 @@ document.getElementById("mainGrid").addEventListener("mousedown", startMouseCoor
window.addEventListener("mousemove", updateMouseCoordinates, true)
window.addEventListener("mouseup", endMouseCoordinates, true)
function startMouseCoordinates() {
console.log("click started")
clicking = true
// singleClick()
singleTap()
@@ -340,6 +341,7 @@ function switchToTouchEvents() {
window.addEventListener("touchend", endTouch, true)
}
function startTouch() {
console.log("touch started")
moveTouch()
clicking = true
singleClick()
@@ -546,4 +548,4 @@ function heldDown() {
loop = setTimeout(heldDown, 100)
}
}
//Updated for realsies!!!
//Updated for realsies!!! like actually