mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-01 11:06:17 -04:00
Merge pull request #180 from galgeek/UmbraBFB
scroll down, and down, then scroll up
This commit is contained in:
commit
3136eefb77
1 changed files with 4 additions and 4 deletions
|
@ -129,12 +129,12 @@ class UmbraBehavior {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!didSomething) {
|
if (!didSomething) {
|
||||||
if (somethingLeftAbove) {
|
if (somethingLeftBelow || ( (window.scrollY + window.innerHeight) < document.documentElement.scrollHeight)) {
|
||||||
window.scrollBy(0, -500);
|
|
||||||
this.idleSince = null;
|
|
||||||
} else if (somethingLeftBelow || ( (window.scrollY + window.innerHeight) < document.documentElement.scrollHeight)) {
|
|
||||||
window.scrollBy(0, 200);
|
window.scrollBy(0, 200);
|
||||||
this.idleSince = null;
|
this.idleSince = null;
|
||||||
|
} else if (somethingLeftAbove) {
|
||||||
|
window.scrollBy(0, -500);
|
||||||
|
this.idleSince = null;
|
||||||
} else if (this.idleSince == null) {
|
} else if (this.idleSince == null) {
|
||||||
this.idleSince = Date.now();
|
this.idleSince = Date.now();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue