From aebcda51a3a0ea79b2d75fbe6e1b7a84a1441098 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Thu, 29 Oct 2026 16:44:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=96=E8=BE=91=E8=83=BD=E5=8A=9B):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=8B=E8=BD=AC=E5=90=8E=E7=BA=B5=E5=90=91?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=9B=9E=E5=BC=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/ofdgo_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/webui/ofdgo_view.js b/assets/webui/ofdgo_view.js index 9f8c295..c59f284 100644 --- a/assets/webui/ofdgo_view.js +++ b/assets/webui/ofdgo_view.js @@ -295,7 +295,8 @@ export function createPageView(context) { if (context.state.editing && shell.classList.contains("rendered")) { const bounds = shell.getBoundingClientRect(), viewport = context.el.viewerPanel.getBoundingClientRect(); const margin = context.state.pageWindow?.overscan ?? 600; - if (bounds.bottom >= viewport.top - margin && bounds.top <= viewport.bottom + margin) { + const bottom = Math.max(bounds.bottom, bounds.top + shell.scrollHeight); + if (bottom >= viewport.top - margin && bounds.top <= viewport.bottom + margin) { context.state.selectedPages.add(index); return; }