Skip to content

Scrolling up very choppy after using scrollToIndex #582

Open

Description

Hi, thank you for this great lib !
I would like to replace Flatlist with it on our app but I'm facing an annoying bug with scrollToIndex.

Current behavior

On Android or iOS, when using scrollToIndex on large list (around 500 items), once the scrollToIndex is done, when I scroll up, the scroll is very choppy. scrolling dow is fine.

iOS : iPhone 12 Pro max : https://imgur.com/a/kf5zvBC
Android : Samsung Galaxy S7 : https://imgur.com/a/fwBBlUt

Expected behavior

Scrolling up should be fluid.

To Reproduce

this.listRef.scrollToIndex({animated:false, index: index})

Adding a setimeout is not helping.

Platform:

  • iOS
  • Android

Environment

"@shopify/flash-list": "^1.2.1"

Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    P1Important but not urgentbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions