Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress tracking can fail for infinite scroll #865

Closed
siliconfeces opened this issue Oct 12, 2023 · 3 comments
Closed

Progress tracking can fail for infinite scroll #865

siliconfeces opened this issue Oct 12, 2023 · 3 comments

Comments

@siliconfeces
Copy link
Contributor

LRR Version and OS
Latest nightly, Linux, Docker.

Bug Details
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.

Basically, this shit: w3c/IntersectionObserver#124

@Difegue
Copy link
Owner

Difegue commented Oct 15, 2023

🤔 Couldn't we just lower the observer threshold?
I wonder if this couldn't combo with #743 somehow.

@siliconfeces
Copy link
Contributor Author

Fiddling with the threshold should work, or at least make it less likely to fuck up. Omakase!

Difegue added a commit that referenced this issue Dec 16, 2023
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.
@Difegue
Copy link
Owner

Difegue commented Dec 16, 2023

I've lowered the threshold to 50%. I guess the issue can still happen with very long webtoon-ass images, but at this point I'm just putting the blame on you for not chopping up your images a teensy bit.

@Difegue Difegue closed this as completed Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants