ooops with the right function getInput

master
km0 2 years ago
parent 10a31a5ad0
commit 737ac78cea

@ -32,16 +32,15 @@ function percentagePosition(e, target) {
}
window.addEventListener("click", (e) => {
placeSticker(e);
getInput(e);
});
window.addEventListener("touchstart", (e) => {
placeSticker(e);
getInput(e);
});
function getInput(e) {
placeSticker(percentagePosition(e, stickerContainer), infoList[loopIndex]);
// Cringe sorry
if (loopIndex < infoList.length - 1) {
loopIndex++;

Loading…
Cancel
Save