Imagine you are writing a reusable UI component for a scrollable list.
-
Imagine you are writing a reusable UI component for a scrollable list. You want your list to have a property such, if true, the list follows the rule "if the user is already scrolled to the bottom of the list, and a new item is added to the bottom, autoscroll to the new bottom".
What would you name this property?
@mcc “anchorsToBottom” maybe? i’ve been writing something similar which has an “anchorIndex” that can be equal to the list’s length (which produces this behavior)
-
Imagine you are writing a reusable UI component for a scrollable list. You want your list to have a property such, if true, the list follows the rule "if the user is already scrolled to the bottom of the list, and a new item is added to the bottom, autoscroll to the new bottom".
What would you name this property?
@mcc brainstorm ([bracketed] parts are optional, / indicates an alternative, * indicates one I like more):
[auto]scroll_to_update, [auto]scroll_to_latest, [auto]follow_updates, [auto]scroll_track_updates, *[auto]scroll_at_bottom, [update_/auto]scroll_on_grow[th], [update_/auto]scroll_on_expand, [update_/auto]scroll_on_add, *[auto]scroll_bottom_to_latest
-
Imagine you are writing a reusable UI component for a scrollable list. You want your list to have a property such, if true, the list follows the rule "if the user is already scrolled to the bottom of the list, and a new item is added to the bottom, autoscroll to the new bottom".
What would you name this property?
@mcc autoScrollToNewItem - name implies it scrolls to reveal a new item wherever its added, not just at end.
-
Imagine you are writing a reusable UI component for a scrollable list. You want your list to have a property such, if true, the list follows the rule "if the user is already scrolled to the bottom of the list, and a new item is added to the bottom, autoscroll to the new bottom".
What would you name this property?
@mcc A vote for "auto_scroll" variants: Wireshark calls this "Automatically scroll during live capture" and has the healthy semantics you describe where if you manually scroll away it will stop autoscrolling, and it resumes if you manually scroll to bottom again
you could probably afford to be a bit more verbose though like "auto_scroll_on_append"
-
Imagine you are writing a reusable UI component for a scrollable list. You want your list to have a property such, if true, the list follows the rule "if the user is already scrolled to the bottom of the list, and a new item is added to the bottom, autoscroll to the new bottom".
What would you name this property?
@mcc Is this generalized to "when the height of the list changes, preserve the current position as a fraction of the height rather than as an absolute" or is it a property peculiar to the bottom?
In the former case, something like "PositionHeightRelative". In the latter, something like "StayAtBottom". Or maybe even "StickyBottom" if I were feeling naughty.
-
@elomatreb @mcc gotta be "stickyBottom"
@kboyd @elomatreb @mcc Beat me to it.
I unironically think "sticky bottom" is an excellent name for this feature -- concise and expressive. But I also suspect it already has a name.
-
@elomatreb @mcc gotta be "stickyBottom"
@kboyd @elomatreb @mcc I was more thinking "sticky end"...
-
Imagine you are writing a reusable UI component for a scrollable list. You want your list to have a property such, if true, the list follows the rule "if the user is already scrolled to the bottom of the list, and a new item is added to the bottom, autoscroll to the new bottom".
What would you name this property?
@mcc Folllower
-
Imagine you are writing a reusable UI component for a scrollable list. You want your list to have a property such, if true, the list follows the rule "if the user is already scrolled to the bottom of the list, and a new item is added to the bottom, autoscroll to the new bottom".
What would you name this property?
NavigateToNewListEndOnPush
-
NavigateToNewListEndOnPush
@rperezrosario so this is where I admit this is all about me trying to find a way to word it other than "stick_bottom"
-
Imagine you are writing a reusable UI component for a scrollable list. You want your list to have a property such, if true, the list follows the rule "if the user is already scrolled to the bottom of the list, and a new item is added to the bottom, autoscroll to the new bottom".
What would you name this property?
@mcc `keepAtEnd`.
Unrelated, I initially read this as saying "Imagine you are a reusable UI component…" and it landed very differently for me
-
@rperezrosario so this is where I admit this is all about me trying to find a way to word it other than "stick_bottom"
-
@mcc `keepAtEnd`.
Unrelated, I initially read this as saying "Imagine you are a reusable UI component…" and it landed very differently for me
@clarity smalltalk documentation standards in reverse
-
Imagine you are writing a reusable UI component for a scrollable list. You want your list to have a property such, if true, the list follows the rule "if the user is already scrolled to the bottom of the list, and a new item is added to the bottom, autoscroll to the new bottom".
What would you name this property?
@mcc T-u74by7
-
Imagine you are writing a reusable UI component for a scrollable list. You want your list to have a property such, if true, the list follows the rule "if the user is already scrolled to the bottom of the list, and a new item is added to the bottom, autoscroll to the new bottom".
What would you name this property?
@mcc keepScrollingScrollingScrollingHuh
-
undefined oblomov@sociale.network shared this topic
-
@mcc follow or tail