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

paged snapping #24

Open
argyleink opened this issue Dec 14, 2022 · 1 comment
Open

paged snapping #24

argyleink opened this issue Dec 14, 2022 · 1 comment

Comments

@argyleink
Copy link
Owner

in addition to snapping to the next item, it'd be nice to snap to the next page. the browser would determine which items are in view and ensure this function scrolls past them, bringing in a new set of items that were previously out of view. this is hard to do today because you have to measure the scrollport then each item, use an intersection observer to know which are in view, then scroll a measured amount to the next set and scroll them to the start of the viewport. could be a simple api from a dev pov, letting the browser do the hard work performantly.

@argyleink
Copy link
Owner Author

see w3c/csswg-drafts#8098

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

No branches or pull requests

1 participant