mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 16:44:23 +08:00
This commit is contained in:
1 parent
d2c99b1610
commit
86937a0290
1 file changed
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user