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

Infinite Page Scroll Restoration #1137

Open
korgon opened this issue Aug 20, 2024 · 0 comments
Open

Infinite Page Scroll Restoration #1137

korgon opened this issue Aug 20, 2024 · 0 comments
Labels
type: feature New functionality

Comments

@korgon
Copy link
Contributor

korgon commented Aug 20, 2024

Currently when using infinite scroll the restorePosition is helpful in navigating back to the product that was last viewed. However, if no product was clicked on, there will be nowhere to scroll, so landing on a URL with ?page=8 will start at the top of the page. We could improve this by adding a setting for infinite configuration so that if there is no element in the scrollMap, we could automatically add the first product on the 8th page - this would restore the position to that product on page load as long as no other product was set to be scrolled to.

@korgon korgon added the type: feature New functionality label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New functionality
Projects
None yet
Development

No branches or pull requests

1 participant