mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 13:21:41 -05:00
Update life.js
This commit is contained in:
@@ -313,6 +313,7 @@ document.getElementById("mainGrid").addEventListener("mousedown", startMouseCoor
|
|||||||
window.addEventListener("mousemove", updateMouseCoordinates, true)
|
window.addEventListener("mousemove", updateMouseCoordinates, true)
|
||||||
window.addEventListener("mouseup", endMouseCoordinates, true)
|
window.addEventListener("mouseup", endMouseCoordinates, true)
|
||||||
function startMouseCoordinates() {
|
function startMouseCoordinates() {
|
||||||
|
console.log("click started")
|
||||||
clicking = true
|
clicking = true
|
||||||
// singleClick()
|
// singleClick()
|
||||||
singleTap()
|
singleTap()
|
||||||
@@ -340,6 +341,7 @@ function switchToTouchEvents() {
|
|||||||
window.addEventListener("touchend", endTouch, true)
|
window.addEventListener("touchend", endTouch, true)
|
||||||
}
|
}
|
||||||
function startTouch() {
|
function startTouch() {
|
||||||
|
console.log("touch started")
|
||||||
moveTouch()
|
moveTouch()
|
||||||
clicking = true
|
clicking = true
|
||||||
singleClick()
|
singleClick()
|
||||||
@@ -546,4 +548,4 @@ function heldDown() {
|
|||||||
loop = setTimeout(heldDown, 100)
|
loop = setTimeout(heldDown, 100)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Updated for realsies!!!
|
//Updated for realsies!!! like actually
|
||||||
|
Reference in New Issue
Block a user