I have an infinite scroll component built from React Virtualized's InfiniteLoader
and Grid
components. If I scroll down using my mouse wheel (ie. reasonably slowly) everything works great. However, when I click on the scrollbar inside the component and drag it down (moving much faster), I never make it to the bottom. Instead, after scrolling a certain percentage of the way down the scrollbar suddenly jumps back to the top.
I've tried adding console.log
statements in Grid
, but all they show is that the event.target.scrollTop
goes from a really high number one moment to 0
the next. What I can't figure out though is why the event.target.scrollTop
suddenly becomes 0
when all that I've done in the browser is move my mouse down (while holding the left-click button).
Does anyone have any idea how I can fix, or even just debug, this problem?