Skip to content

scroll stuck bug on iOS Native devices #83

@827652549

Description

@827652549

On iOS native devices, fill items with random heights, scroll a certain distance, and then return to the top and get stuck near the 1st or 2nd item.

This is a reproducible demo, you may need to run an iOS simulator on a real machine or through Simulator.

bug.mp4
You can clone https://github.com/827652549/mako-study-monorepo
pnpm install
cd virtual-list
npm run dev
...copy the url in Simulator iOS 
refresh, scroll , then back to top

Using iOS devtools, I found that I was executing into code inside the library, and I guessed that it was a problem with the logic of calculating this piece on an iOS device.

I tried to fix it by doing this

...git link

This is just a compatibility fix, but it may not be the best solution, expect a better one!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions