bvaughn / react-virtualized

React components for efficiently rendering large lists and tabular data
http://bvaughn.github.io/react-virtualized/
MIT License
26.12k stars 3.06k forks source link

ScrollSync programmatically seems to sync breaks up #1706

Open Mirza-Hassan opened 2 years ago

Mirza-Hassan commented 2 years ago

Hi,

I am facing an issue in ScrollSync doesn't seem to sync correctly. When scrolling programmatically due to an outside event the sync breaks up. How can you fix this? any help is appreciated. Thanks !

  useEffect(() => {
    scrollRef.current = scrollRef.current.slice(0, visits.length);
    scrollRef?.current[visits.length - 1]?.scrollIntoView({ block: 'nearest', inline: 'nearest' });
  }, [visits]);
Screenshot 2021-10-29 at 4 48 07 PM
bogdanblunt commented 10 months ago

Any update on this issue ?