ooops with the right function getInput

master
km0 3 years ago
parent 10a31a5ad0
commit 737ac78cea

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

Loading…
Cancel
Save