diff --git a/brozzler/js-templates/umbraBehavior.js.j2 b/brozzler/js-templates/umbraBehavior.js.j2 index 0cdf232..3e04e1c 100644 --- a/brozzler/js-templates/umbraBehavior.js.j2 +++ b/brozzler/js-templates/umbraBehavior.js.j2 @@ -129,12 +129,12 @@ class UmbraBehavior { } if (!didSomething) { - if (somethingLeftAbove) { - window.scrollBy(0, -500); - this.idleSince = null; - } else if (somethingLeftBelow || ( (window.scrollY + window.innerHeight) < document.documentElement.scrollHeight)) { + if (somethingLeftBelow || ( (window.scrollY + window.innerHeight) < document.documentElement.scrollHeight)) { window.scrollBy(0, 200); this.idleSince = null; + } else if (somethingLeftAbove) { + window.scrollBy(0, -500); + this.idleSince = null; } else if (this.idleSince == null) { this.idleSince = Date.now(); }