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

WEBDEV-6636 Delay scrolling to page until content has loaded in #429

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

latonv
Copy link
Contributor

@latonv latonv commented Mar 11, 2025

When a &page= parameter is set initially on a page equipped with collection browser, it is intended to scroll immediately to that page in the infinite scroller. However, recently this has been flaky especially on our profile pages, where usage of collection browser across multiple tabs slightly complicates the setup, resulting in the scroll being attempted before the infinite scroller has begun rendering enough placeholder items to provide a scroll target.

This PR just ensures that if we try to perform that initial page scroll before the infinite scroller is ready to handle it, that we instead just set a flag and postpone the scroll until it becomes possible.

Copy link

PR Preview Action v1.6.0

🚀 View preview at
https://internetarchive.github.io/iaux-collection-browser/pr/pr-429/

Built to branch gh-pages at 2025-03-11 20:35 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant