This commit is contained in:
2026-04-15 03:21:53 +09:00
parent f58c98e85c
commit 0716ea760c
+3 -3
View File
@@ -43,14 +43,14 @@
function onTap() {
tapCount++;
if (tapCount >= 3) {
if (tapCount >= 10) {
clearTimeout(tapTimer);
tapCount = 0;
location.href = '/qr-code/';
return;
}
clearTimeout(tapTimer);
tapTimer = setTimeout(() => { tapCount = 0; }, 600);
tapTimer = setTimeout(() => { tapCount = 0; }, 1500);
}
el.addEventListener('touchend', (e) => {
@@ -60,7 +60,7 @@
}, { passive: false });
el.addEventListener('click', () => {
if (Date.now() - lastTouch < 500) return;
if (Date.now() - lastTouch < 1400) return;
onTap();
});
})();