From 78a67b5f97f49660e8f14a801a257a5c33ae8f18 Mon Sep 17 00:00:00 2001 From: Guichumo <836061373@qq.com> Date: Sun, 13 Sep 2026 00:37:05 +0800 Subject: [PATCH] fix: reader blank viewport when scrolling into estimated spacer regions Spacers are estimated from average paragraph height, so fast scrollbar drags could land the viewport inside the blank bottom spacer where the old append-at-document-bottom logic never reached. Now every scroll event maps scrollTop back to a paragraph index; if it falls outside the rendered window the window re-renders around it and re-anchors the scroll position (self-healing), with edge-batching loops for large jumps. --- src/components/ReaderCanvas.vue | 71 ++++++++++++++++++++------------- 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a/src/components/ReaderCanvas.vue b/src/components/ReaderCanvas.vue index 2fcffb5..03ac119 100644 --- a/src/components/ReaderCanvas.vue +++ b/src/components/ReaderCanvas.vue @@ -1,7 +1,9 @@