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

This commit is contained in:
2026-07-08 14:09:45 +08:00
parent d7235a5078
commit e4f542c429
+2 -2
View File
@@ -1692,7 +1692,7 @@ async function focusSignatureStamp(stamp) {
if (!state.doc || pageIndex < 0) {
return;
}
await renderPage(pageIndex, { fit: false });
await renderPage(pageIndex, { fit: false, scroll: false });
await nextFrame();
highlightSignatureStamp(stamp);
setStatus(stamp.page ? `已定位签名外观 第 ${stamp.page}` : "已定位签名外观");
@@ -1712,7 +1712,7 @@ function highlightSignatureStamp(stamp) {
mark.style.width = `${stamp.width * MM_TO_PX * state.scale}px`;
mark.style.height = `${stamp.height * MM_TO_PX * state.scale}px`;
shell.append(mark);
mark.scrollIntoView({ block: "center", inline: "center" });
mark.scrollIntoView({ block: "nearest", inline: "nearest" });
window.setTimeout(() => mark.remove(), 1800);
}