From 76f39363a09a697c2b080c243b2f4e37f5c21f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=AD=96?= <1055104544@qq.com> Date: Thu, 26 Mar 2026 18:01:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9B=AE=E5=BD=95=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=AE=9A=E4=BD=8D=E5=88=B0=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E7=AB=A0=E8=8A=82=EF=BC=8C=E5=8E=BB=E6=8E=89=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alacarte-novel-website/reader.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alacarte-novel-website/reader.html b/alacarte-novel-website/reader.html index ea904ea..07db79a 100644 --- a/alacarte-novel-website/reader.html +++ b/alacarte-novel-website/reader.html @@ -576,13 +576,13 @@ }); tocList.innerHTML = html; - // 自动滚动到当前章节 + // 自动定位到当前章节(无动画) setTimeout(() => { const currentItem = tocList.querySelector('.current'); if (currentItem) { - currentItem.scrollIntoView({ behavior: 'smooth', block: 'center' }); + currentItem.scrollIntoView({ block: 'center' }); } - }, 100); + }, 50); } // 更新移动端目录高亮