|
|
@ -35,9 +35,11 @@ window.addEventListener("click", (e) => {
|
|
|
|
getInput(e);
|
|
|
|
getInput(e);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener("touchstart", (e) => {
|
|
|
|
// Test for trick Safari mobile
|
|
|
|
getInput(e);
|
|
|
|
window.addEventListener("touchstart", () => {});
|
|
|
|
});
|
|
|
|
window.addEventListener("touchend", () => {});
|
|
|
|
|
|
|
|
window.addEventListener("touchcancel", () => {});
|
|
|
|
|
|
|
|
window.addEventListener("touchmove", () => {});
|
|
|
|
|
|
|
|
|
|
|
|
function getInput(e) {
|
|
|
|
function getInput(e) {
|
|
|
|
placeSticker(percentagePosition(e, stickerContainer), infoList[loopIndex]);
|
|
|
|
placeSticker(percentagePosition(e, stickerContainer), infoList[loopIndex]);
|
|
|
|