mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
c1e28bb1a3
commit
d7235a5078
1 file changed
+4
-2
@@ -925,7 +925,9 @@ async function renderPage(index, options = {}) {
|
||||
}
|
||||
try {
|
||||
setCurrentPage(index);
|
||||
applyFit(false);
|
||||
if (options.fit !== false) {
|
||||
applyFit(false);
|
||||
}
|
||||
if (options.scroll !== false) {
|
||||
scrollToPage(index);
|
||||
}
|
||||
@@ -1690,7 +1692,7 @@ async function focusSignatureStamp(stamp) {
|
||||
if (!state.doc || pageIndex < 0) {
|
||||
return;
|
||||
}
|
||||
await renderPage(pageIndex);
|
||||
await renderPage(pageIndex, { fit: false });
|
||||
await nextFrame();
|
||||
highlightSignatureStamp(stamp);
|
||||
setStatus(stamp.page ? `已定位签名外观 第 ${stamp.page} 页` : "已定位签名外观");
|
||||
|
||||
Reference in new issue
Block a user