Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using CellMeasurer with scrollToIndex in a list bounces back to scrollToIndex if row is not in CellMeasurerCache #1148

Open
EmilyHwang opened this issue Jun 21, 2018 · 4 comments

Comments

@EmilyHwang
Copy link

I'm using CellMeasurer with scrollToIndex set to that last item in the list. I found that with even with the fix in #998, if the user uses the mouse to manually drag the scrollbar all the way to the top then tries to scroll down normally, the list jumps back down to the last item.

After some investigation, it seems that the list jumps to the scrollToIndex value if the row is not in the CellMeasurerCache

@wuweiweiwu wuweiweiwu added the bug label Jun 22, 2018
@wuweiweiwu
Copy link
Contributor

hi @EmilyHwang that MR was reverted. I'll have to go back and and fix the tests. and push another change out.

@EmilyHwang
Copy link
Author

@wuweiweiwu Even with that change (I manually made that fix locally), scrolling does not work properly

@wuweiweiwu
Copy link
Contributor

@EmilyHwang Thanks for verifying. Ill take a look soon

@wuweiweiwu
Copy link
Contributor

@EmilyHwang can you post a simple repro in a codesandbox? that'll be much appreciated

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

No branches or pull requests

2 participants