3 ms·
I think this depends on what kind of content you are scrolling. If you know how many items there are and all the items have the same height, then you can simpl
by gampleman 4y ago
I think this depends on what kind of content you are scrolling.
If you know how many items there are and all the items have the same height, then you can simply set the height of your container for the scrollbar to be accurate.
Furthermore you can listen to the scroll event and load the correct items if the user uses the scrollbar to jump to a particular spot.
So I think the bigger problem is a) people being lazy and not implementing this properly b) using this pattern where the preconditions don’t hold.