mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-08-30 12:12:40 +08:00
@@ -925,7 +925,9 @@ async function renderPage(index, options = {}) {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
setCurrentPage(index);
|
setCurrentPage(index);
|
||||||
|
if (options.fit !== false) {
|
||||||
applyFit(false);
|
applyFit(false);
|
||||||
|
}
|
||||||
if (options.scroll !== false) {
|
if (options.scroll !== false) {
|
||||||
scrollToPage(index);
|
scrollToPage(index);
|
||||||
}
|
}
|
||||||
@@ -1690,7 +1692,7 @@ async function focusSignatureStamp(stamp) {
|
|||||||
if (!state.doc || pageIndex < 0) {
|
if (!state.doc || pageIndex < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await renderPage(pageIndex);
|
await renderPage(pageIndex, { fit: false });
|
||||||
await nextFrame();
|
await nextFrame();
|
||||||
highlightSignatureStamp(stamp);
|
highlightSignatureStamp(stamp);
|
||||||
setStatus(stamp.page ? `已定位签名外观 第 ${stamp.page} 页` : "已定位签名外观");
|
setStatus(stamp.page ? `已定位签名外观 第 ${stamp.page} 页` : "已定位签名外观");
|
||||||
|
|||||||
Reference in New Issue
Block a user