https://kotlinlang.org logo
#compose
Title
# compose
r

ritesh

04/13/2022, 3:21 AM
FocusManager.moveFocus(FocusDirection.Down)
doesn't scroll to the nearest focusable descendent, if i am calling it from the last visible node on the screen and next focusable node is out of the screen. Is this an expected behavior and needs some extra handling or it's a known bug? Here, my all focusable nodes are text-fields.
c

Colton Idle

04/13/2022, 4:19 AM
There's been a ton of focus work in the latest compose alphas. I'd read through the release notes/upgrade to see if your problem is solved. If not, create a minimal repro bug. They've been getting these triaged fairly quickly from what I've seen.
👍 1
z

Zach Klippenstein (he/him) [MOD]

04/14/2022, 4:13 PM
Are your fields in a lazy list by any chance?
r

ritesh

04/14/2022, 4:14 PM
They are inside a column with verticalscroll.
z

Zach Klippenstein (he/him) [MOD]

04/14/2022, 4:36 PM
Are you on the latest alpha?
r

ritesh

04/14/2022, 4:38 PM
Haven't tried on latest alpha, need to check. I had checked on
1.0.x
version. It could probably have been fixed on latest alpha, i see lot of focus related work in release notes.
c

Colton Idle

04/14/2022, 4:39 PM
Yeah, like I said in my original comment. Try the latest alphas 😁
👍 1
z

Zach Klippenstein (he/him) [MOD]

04/14/2022, 4:42 PM
Oh yea, 1.0.x isn’t even the latest stable minor version so all bets are off there
👍 1
8 Views