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