mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-08 15:49:46 -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 (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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue