Spell against safari mobile 4 event listeners

master
km0 3 years ago
parent 3d84310bf1
commit af85919e71

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

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

Loading…
Cancel
Save