From 6b9c90596acb47ff977bd3296fc3d754fd308b4a Mon Sep 17 00:00:00 2001 From: "yinzhou.ma" Date: Fri, 17 Jul 2026 09:00:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A6=96=E9=A1=B5=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=E6=98=BE=E7=A4=BA=EF=BC=8C=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E9=95=BF=E6=8C=89=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/public/index.html b/public/index.html index b834071..06af4c1 100644 --- a/public/index.html +++ b/public/index.html @@ -24,6 +24,7 @@ display: flex; flex-wrap: wrap; gap: 30px; + justify-content: center; } .image-item { @@ -89,17 +90,6 @@ var imgEl = document.createElement('img'); imgEl.src = '/uploads/' + img.filename; imgEl.loading = 'lazy'; - var pressTimer; - imgEl.addEventListener('touchstart', function() { - pressTimer = setTimeout(function() { - var a = document.createElement('a'); - a.href = '/uploads/' + img.filename; - a.download = img.original_name || 'image.jpg'; - a.click(); - }, 1000); - }); - imgEl.addEventListener('touchend', function() { clearTimeout(pressTimer); }); - imgEl.addEventListener('touchmove', function() { clearTimeout(pressTimer); }); div.appendChild(imgEl); grid.appendChild(div); });