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