Skip to content

Commit 26ff17a

Browse files
committed
(#865) Lower the intersectionObserver threshold to 50%
Progress tracking doesn't trigger in infinite scroll when pages are too tall AND when you are using the mousewheel or similar. This happens because the IntersectionObserver threshold is set to 0.8, and is thus never triggered if 80% of a page is never visible at one time.
1 parent f52b990 commit 26ff17a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/reader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Reader.initInfiniteScrollView = function () {
268268
Reader.updateProgress();
269269
}
270270
}
271-
}, { threshold: 0.8 });
271+
}, { threshold: 0.5 });
272272

273273
Reader.pages.slice(1).forEach((source) => {
274274
const img = new Image();

0 commit comments

Comments
 (0)