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:
@@ -336,6 +336,7 @@ function switchToTouchEvents() {
|
||||
window.addEventListener("touchend", endTouch, true)
|
||||
}
|
||||
function startTouch() {
|
||||
moveTouch()
|
||||
if (!clicking) {
|
||||
if (event.touches.length > 0) {
|
||||
clicking = true
|
||||
@@ -353,6 +354,7 @@ function moveTouch() {
|
||||
}
|
||||
}
|
||||
function endTouch() {
|
||||
moveTouch()
|
||||
if (event.touches.length < 1) {
|
||||
clicking = false
|
||||
clearTimeout(loop)
|
||||
|
Reference in New Issue
Block a user