Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@TheOct0 would I be correct in saying something like:
barHeight = Σ (rant * rantHeight) for all rants that are in viewport / Σ (rant * rantHeight) for all rants -
If it's like an iOS table view, you give it an estimated cell height and it adjusts based on what's rendered since it's not rendering the whole table.
-
TheOct039246y@woodworks I would go with another approach. It feels like the two ends of the scroll indicator are separate, and that the scroll bar is divided in as many equal segments as there are elements. If the bottom of your screen goes through a long comment while the top goes through short ones, the latter is going to appear to move more rapidly, thus shortening the scroll indicator. That's my theory.
-
@resdac this was the first one that came up with search, but I remember another one that had a gif. https://devrant.com/rants/165629/...
-
@electrineer sorry didn't realize 😅
Feels like I'm on stack overflow though "closed as duplicate"
Related Rants
What's with this scroll bar? I like the changing size of the bar as it scrolls faster, is there a name for this type of scroll animation?
question
devrant
app
scroll