From af85919e7185841da9575e99f29ac149d366b6e7 Mon Sep 17 00:00:00 2001 From: lzzfnc Date: Tue, 7 Dec 2021 23:35:43 +0100 Subject: [PATCH] Spell against safari mobile 4 event listeners --- index.html | 1 - sticker.js | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index d9343a2..a32c98c 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,6 @@ Learning how to walk while cat-walking - diff --git a/sticker.js b/sticker.js index 8cbd47c..03c34bf 100644 --- a/sticker.js +++ b/sticker.js @@ -35,9 +35,11 @@ window.addEventListener("click", (e) => { getInput(e); }); -window.addEventListener("touchstart", (e) => { - getInput(e); -}); +// Test for trick Safari mobile +window.addEventListener("touchstart", () => {}); +window.addEventListener("touchend", () => {}); +window.addEventListener("touchcancel", () => {}); +window.addEventListener("touchmove", () => {}); function getInput(e) { placeSticker(percentagePosition(e, stickerContainer), infoList[loopIndex]);