feat(前端界面): 优化阅读与编辑切换时的适宽、适高效果
build.yaml / build (push) Successful in 38s

This commit is contained in:
xiaoqidun committed 2026-09-18 10:46:38 +08:00
1 parent d2c99b1610
commit 86937a0290
1 file changed
+4
+4
View File
@@ -5897,6 +5897,10 @@ function restoreScaleAnchor(anchor) {
if (!anchor) { if (!anchor) {
return; return;
} }
if (state.fitMode === "height" || (state.fitMode === "width" && anchor.y <= 0)) {
scrollToPage(anchor.index);
return;
}
const shell = pageShell(anchor.index); const shell = pageShell(anchor.index);
if (!shell) { if (!shell) {
return; return;