mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 21:31:39 -05:00
Update life.js
This commit is contained in:
@@ -311,15 +311,18 @@ window.addEventListener("mouseup", endMouseCoordinates, true)
|
||||
function startMouseCoordinates() {
|
||||
clicking = true
|
||||
updatePlayerBoxes()
|
||||
alert("still clicking")
|
||||
}
|
||||
function updateMouseCoordinates() {
|
||||
touchX[0] = event.clientX
|
||||
touchY[0] = event.clientY
|
||||
alert("still clicking")
|
||||
}
|
||||
function endMouseCoordinates() {
|
||||
clearTimeout(loop)
|
||||
clearTimers()
|
||||
clicking = false
|
||||
alert("still clicking")
|
||||
}
|
||||
window.addEventListener("touchstart", switchToTouchEvents, true)
|
||||
function switchToTouchEvents() {
|
||||
|
Reference in New Issue
Block a user