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:
@@ -225,8 +225,10 @@ function updateBackgroundColor(color) {
|
||||
|
||||
function switchToTouchEvents() {
|
||||
window.removeEventListener("touchstart", switchToTouchEvents)
|
||||
document.removeEventListener("mouseup", decoyMouseUpFunction)
|
||||
alert("switch!!!!")
|
||||
for (var i = 1; i <= playerCount; i++) {
|
||||
playerList[i - 1].canvas.removeEventListener("mousedown", decoyMouseDownFunction)
|
||||
alert(playerList[i - 1].canvas.removeEventListener("mousedown", decoyMouseDownFunction))
|
||||
playerList[i - 1].canvas.addEventListener("touchstart", function() {
|
||||
mouseDownPlayerBox(this, event.clientX, event.clientY)
|
||||
})
|
||||
|
Reference in New Issue
Block a user