You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: