Spell against safari mobile 4 event listeners

master
km0 2 years ago
parent 3d84310bf1
commit af85919e71

@ -7,7 +7,6 @@
<title>Learning how to walk while cat-walking</title> <title>Learning how to walk while cat-walking</title>
<link rel="stylesheet" href="./static/font/font.css" /> <link rel="stylesheet" href="./static/font/font.css" />
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="style.css" />
<!-- <script src="position.js" defer></script> -->
<script src="sticker.js" defer></script> <script src="sticker.js" defer></script>
</head> </head>
<body> <body>

@ -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]);

Loading…
Cancel
Save