feat(前端界面): 优化横向滚动条
build.yaml / build (push) Successful in 34s

This commit is contained in:
2026-07-13 17:07:12 +08:00
parent 23849aee86
commit 7d8333b292
+1 -4
View File
@@ -956,9 +956,6 @@ async function renderPage(index, options = {}) {
} }
try { try {
setCurrentPage(index); setCurrentPage(index);
if (options.fit !== false) {
applyFit(false);
}
if (options.scroll !== false) { if (options.scroll !== false) {
scrollToPage(index); scrollToPage(index);
} }
@@ -1827,7 +1824,7 @@ async function focusSignatureStamp(stamp) {
if (!state.doc || pageIndex < 0) { if (!state.doc || pageIndex < 0) {
return; return;
} }
await renderPage(pageIndex, { fit: false, scroll: false }); await renderPage(pageIndex, { scroll: false });
await nextFrame(); await nextFrame();
highlightSignatureStamp(stamp); highlightSignatureStamp(stamp);
setStatus(stamp.page ? `已定位签名外观 第 ${stamp.page}` : "已定位签名外观"); setStatus(stamp.page ? `已定位签名外观 第 ${stamp.page}` : "已定位签名外观");