Skip to content

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