mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +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) {
|
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;
|
||||||
|
|||||||
Reference in new issue
Block a user