compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

LazyListState.animateScrollToItem Not scrolling correctly to the specified index

Open ltttttttttttt opened this issue 1 year ago • 3 comments

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:

  1. run iosApp in https://github.com/ltttttttttttt/ComposeViews
  2. Click on 'ValueSelector功能'
  3. 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
  4. 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 image

ltttttttttttt avatar Jan 20 '24 11:01 ltttttttttttt

I didn't manage to compile it. Can you provide a minimal snippet reproducing the problem?

elijah-semyonov avatar Jan 23 '24 12:01 elijah-semyonov

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

ltttttttttttt avatar Jan 23 '24 13:01 ltttttttttttt

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?

mazunin-v-jb avatar Feb 04 '24 23:02 mazunin-v-jb

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Jul 14 '24 15:07 okushnikov