feat(前端界面): 优化签名处点击印章位置
build.yaml / build (push) Successful in 33s

This commit is contained in:
2026-07-08 13:59:06 +08:00
parent c1e28bb1a3
commit d7235a5078
+3 -1
View File
@@ -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}` : "已定位签名外观");