From 2d26562301280168d0bb01fb81452826529d0cd7 Mon Sep 17 00:00:00 2001 From: Matt Mascarenhas Date: Sun, 7 Feb 2021 02:01:38 +0000 Subject: [PATCH] cinera_pre.js: Equalise auto-scroll gatherability --- cinera/cinera_pre.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cinera/cinera_pre.js b/cinera/cinera_pre.js index 2551c99..b73354f 100644 --- a/cinera/cinera_pre.js +++ b/cinera/cinera_pre.js @@ -282,6 +282,7 @@ function ScrollTo(Element, ScrollPos, StickyObscuringElement) { if(ScrollY < Ceiling) { if(ScrollY < 0) { ScrollY = -ScrollY; } + GatherableHeight -= Ceiling; if(ScrollY <= GatherableHeight) { DesiredScroll = YOffsetFromPage - Ceiling;