fix(前端界面): 修复关闭文件后缩略图滚动残留
build.yaml / build (push) Successful in 49s

This commit is contained in:
xiaoqidun committed 2026-10-21 19:16:29 +08:00
1 parent 67f4cf9d2c
commit 9b362d2f02
1 file changed
+3
+3
View File
@@ -10925,6 +10925,9 @@ function renderPageList() {
state.pageListCurrent = null; state.pageListCurrent = null;
state.visibleThumbnails.clear(); state.visibleThumbnails.clear();
if (!state.doc) { if (!state.doc) {
el.pageList.style.height = "";
el.pageList.classList.remove("virtual-pages", "grouped-pages");
el.navigationContent.scrollTop = 0;
return; return;
} }
if (state.thumbnailObserver) { if (state.thumbnailObserver) {