compose-multiplatform
compose-multiplatform copied to clipboard
LazyListState.animateScrollToItem Not scrolling correctly to the specified index
Describe the bug LazyListState.animateScrollToItem Not scrolling correctly to the specified index
Affected platforms Select one of the platforms below:
- iOS
Versions
- Kotlin version*: 1.9.20
- Compose Multiplatform version*: 1.5.10
- OS version(s)* (required for Desktop and iOS issues): macOS 13.0.1 (22A400)
- OS architecture (x86 or arm64): arm64
To Reproduce Steps and/or the code snippet to reproduce the behavior:
- run iosApp in https://github.com/ltttttttttttt/ComposeViews
- Click on 'ValueSelector功能'
- Dragging the Value selector control at the top and dragging it down to the bottom of the screen will trigger scrolling to the corresponding index, but there is no animation
- Code in https://github.com/ltttttttttttt/ComposeViews/blob/main/ComposeViews/src/commonMain/kotlin/com/lt/compose_views/value_selector/ValueSelector.kt line:133
Expected behavior I hope to scroll to the corresponding index like Android
Screenshots
I didn't manage to compile it. Can you provide a minimal snippet reproducing the problem?
I didn't manage to compile it. Can you provide a minimal snippet reproducing the problem?
run iosApp https://github.com/ltttttttttttt/ComposeViews/tree/LazyListState-bug/chat
line 73 https://github.com/ltttttttttttt/ComposeViews/blob/LazyListState-bug/chat/shared/src/commonMain/kotlin/ChatApp.kt
Hello, @ltttttttttttt! Unfortunately, your project contains a significant amount of user-specific code and details. We can't accept that as reproducer because we can't be sure that the issue is on our side.
Could you please provide a stripped down version of your code that demonstrates the issue?
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.