mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
Update life.js
This commit is contained in:
@@ -244,7 +244,7 @@ function switchToTouchEvents() {
|
|||||||
playerList[i - 1].canvas.removeEventListener("mousedown", decoyMouseDownFunction, true)
|
playerList[i - 1].canvas.removeEventListener("mousedown", decoyMouseDownFunction, true)
|
||||||
playerList[i - 1].canvas.addEventListener("touchstart", function() {
|
playerList[i - 1].canvas.addEventListener("touchstart", function() {
|
||||||
for (var i = 0; i < event.touches.length; i ++) {
|
for (var i = 0; i < event.touches.length; i ++) {
|
||||||
// mouseDownPlayerBox(this, event.touches[i].clientX, event.touches[i].clientY)
|
mouseDownPlayerBox(this, event.touches[i].clientX, event.touches[i].clientY)
|
||||||
}
|
}
|
||||||
window.scrollTo(0, 0)
|
window.scrollTo(0, 0)
|
||||||
}, true)
|
}, true)
|
||||||
|
Reference in New Issue
Block a user