fix(目录跳转): 修复目录跳转及缩略图联动
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-10-20 21:26:02 +08:00
1 parent 3f774056da
commit 764e8a750a
1 file changed
+1 -1
+1 -1
View File
@@ -10097,12 +10097,12 @@ function setCurrentPage(index) {
} }
function updatePageListCurrent(force = false) { function updatePageListCurrent(force = false) {
const current = el.pageList.querySelector(".page-list-item[data-current]");
if (state.thumbnailWindow) { if (state.thumbnailWindow) {
if (!force && state.pageListCurrent === state.pageIndex) return; if (!force && state.pageListCurrent === state.pageIndex) return;
state.pageListCurrent = state.pageIndex; state.pageListCurrent = state.pageIndex;
if (state.showPages && !el.pageList.hidden) revealThumbnail(state.pageIndex); if (state.showPages && !el.pageList.hidden) revealThumbnail(state.pageIndex);
} }
const current = el.pageList.querySelector(".page-list-item[data-current]");
if (current) { if (current) {
if (!force && Number.parseInt(current.dataset.pageIndex, 10) === state.pageIndex) { if (!force && Number.parseInt(current.dataset.pageIndex, 10) === state.pageIndex) {
return; return;