mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
Change interval speed
This commit is contained in:
parent
f5ed91de6e
commit
473fd9e393
@ -80,13 +80,13 @@ class UmbraBehavior {
|
||||
continue;
|
||||
}
|
||||
|
||||
for ( var i = 0; i < doTargetsLength; i++) {
|
||||
for (var i = 0; i < doTargetsLength; i++) {
|
||||
if (!repeatSameElement && this.alreadyDone.indexOf(doTargets[i]) > -1) {
|
||||
continue;
|
||||
}
|
||||
if (!this.isVisible(doTargets[i])) {
|
||||
continue;
|
||||
}
|
||||
//if (!this.isVisible(doTargets[i])) {
|
||||
// continue;
|
||||
//}
|
||||
var where = this.aboveBelowOrOnScreen(doTargets[i]);
|
||||
if (where == 0) {
|
||||
this.doTarget(doTargets[i], action);
|
||||
@ -101,10 +101,7 @@ 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 (this.idleSince == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user