cinera_pre.js: Equalise auto-scroll gatherability

This commit is contained in:
Matt Mascarenhas 2021-02-07 02:01:38 +00:00
parent 4ba03f9338
commit 2d26562301
1 changed files with 1 additions and 0 deletions

View File

@ -282,6 +282,7 @@ function ScrollTo(Element, ScrollPos, StickyObscuringElement) {
if(ScrollY < Ceiling) if(ScrollY < Ceiling)
{ {
if(ScrollY < 0) { ScrollY = -ScrollY; } if(ScrollY < 0) { ScrollY = -ScrollY; }
GatherableHeight -= Ceiling;
if(ScrollY <= GatherableHeight) if(ScrollY <= GatherableHeight)
{ {
DesiredScroll = YOffsetFromPage - Ceiling; DesiredScroll = YOffsetFromPage - Ceiling;