Open OmkarRajam opened 5 years ago
I was able to fix this issue by doing a minor change as proposed in this PR: #1266 If this fix is correct, I request you to accept the above PR which focuses on solving this issue.
Same problem here with version 9.21.0
I think it should be considered for this._recomputeScrollLeftFlag
as well @OmkarRajam
I resolved the problem by using this method manually with ref https://github.com/bvaughn/react-virtualized/blob/2c9934066c6fd8e7135831162d19909ea4c3bb5c/source/List/List.js#L180-L187
What's the issue: When we scroll down the list for some time and then we scroll up even for a bit (using mouse wheen/touchpad), we jump to the highlighted list item (highlighted item is force scrolled in the view) even though it was far away from where we were.
When does the issue occur: This is a rare issue which occurs only when all these conditions are met
here's a gif:
You can see a demo of the above problem on this codesandbox https://codesandbox.io/s/github/OmkarRajam/react_virtualized_pr It has been created using this repository https://github.com/OmkarRajam/react_virtualized_pr
I was able to fix this issue by doing a minor change as proposed in this PR: #1266 If this fix is correct, I request you to accept the above PR which focuses on solving this issue.