diff --git a/assets/webui/ofdgo.js b/assets/webui/ofdgo.js index 62731a7..513ac66 100644 --- a/assets/webui/ofdgo.js +++ b/assets/webui/ofdgo.js @@ -5897,6 +5897,10 @@ function restoreScaleAnchor(anchor) { if (!anchor) { return; } + if (state.fitMode === "height" || (state.fitMode === "width" && anchor.y <= 0)) { + scrollToPage(anchor.index); + return; + } const shell = pageShell(anchor.index); if (!shell) { return;