From 97a00cf1a845503c5f78e5c40583c1731b84ba3e Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Thu, 15 Oct 2026 09:39:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=89=8D=E7=AB=AF=E7=95=8C=E9=9D=A2):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=82=E5=AE=BD=E8=BF=9E=E7=BB=AD=E9=98=85?= =?UTF-8?q?=E8=AF=BB=E6=A8=AA=E5=90=91=E6=BA=A2=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/ofdgo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/webui/ofdgo.js b/assets/webui/ofdgo.js index a649950..6a523ea 100644 --- a/assets/webui/ofdgo.js +++ b/assets/webui/ofdgo.js @@ -10609,7 +10609,7 @@ function fitWidthScale(page) { available = Math.max(1, available - scrollbarWidth()); } } - return Math.min(4, Math.max(0.2, available / width)); + return Math.min(4, available / width); } function fitHeight(updateStatus = true) { @@ -10664,7 +10664,8 @@ function applyFit(updateStatus = true) { function setScale(nextScale, updateStatus = true, fitMode = "free") { const anchor = updateStatus && fitMode === "free" ? scaleAnchor() : null; - const scale = Math.min(4, Math.max(0.2, nextScale)); + // 适配缩放不受手动下限限制,避免大页面撑出视区。 + const scale = Math.min(4, fitMode === "free" ? Math.max(0.2, nextScale) : nextScale); const layoutChanged = scale !== state.scale || fitMode !== state.fitMode; state.fitMode = fitMode; state.scale = scale;