The title is pretty much the gist of the issue. I am designing an onboarding flow in which every page contained within has a TextInputField
that requests focus upon first composition.
Using animateScrollToPage()
in this scenario leads to unexpected behaviour: pages not being scrolled all the way or pages being skipped entirely.
Removing the focus requesting or using scrollToPage()
instead of animateScrollToPage()
fixes the issues.
This behaviour is easy to reproduce on both the deprecated Accompanist
Pager and the one introduced into foundation since 1.4.0
.
I was wondering if anyone has a potential solution to this issue or if it is just an inherent issue of Compose
. Any suggestions/opinions are appreciated.
Thanks!