Zach Klippenstein (he/him) [MOD]
01/25/2024, 11:40 PMBringIntoViewRequester
directly? How/what for? I’m thinking of converting it to an interface that Modifier.Node
subclasses need to implement, would this be good/bad for you? Please respond in the thread.Chris Fillmore
01/26/2024, 12:52 AMAlbert Chang
01/26/2024, 3:01 AMbringIntoView()
outside of a modifier node?Zach Klippenstein (he/him) [MOD]
01/26/2024, 3:17 AMZach Klippenstein (he/him) [MOD]
01/26/2024, 3:17 AMvide
01/26/2024, 8:26 AMJacob Ras
01/26/2024, 8:41 AMvide
01/26/2024, 8:41 AMModifier.scrollOnFocus
modifier. The instance is shared like this:
.bringIntoViewRequester(requester)
.then(ScrollOnFocusElement(padding, center, predicate, description, requester))
In this case if the `ScrollOnFocusElement`/`ScrollOnFocusNode` would be able to implement BringIntoViewRequesterNode
(it's currently internal) we wouldn't need to instantiate upper in the hierarchy.
2) Bringing a playing track into view on shuffle play:
LaunchedEffect(isPlaying) {
if (isPlaying) {
scope.launch {
// Bring track into view with 32 units vertical padding
bringIntoViewRequester.bringIntoView(...
3) Ensuring a question is in viewport when toggling software keyboard
LaunchedEffect(isKeyboardVisible) {
bringIntoViewRequester.bringIntoView(
4) Initial scroll to a specific point in a large scrolling page
LaunchedEffect(Unit) {
if (initialScrollToRecommendations) {
scope.launch {
bringIntoViewRequester.bringIntoView(...
Chris Fillmore
01/26/2024, 10:18 AMgsala
01/26/2024, 11:47 AMZach Klippenstein (he/him) [MOD]
01/26/2024, 3:19 PMZach Klippenstein (he/him) [MOD]
01/26/2024, 3:21 PMZach Klippenstein (he/him) [MOD]
01/26/2024, 3:23 PMvide
01/26/2024, 7:33 PMZach Klippenstein (he/him) [MOD]
01/26/2024, 7:54 PMBringIntoViewResponder
themselves?vide
02/02/2024, 10:36 AM