react-scroll icon indicating copy to clipboard operation
react-scroll copied to clipboard

Is it possible to prevent cancel unless scrolling inside a container?

Open ilyador opened this issue 4 years ago • 1 comments

I am doing

useEffect(() => {
  scroller.scrollTo('bottom', {
    duration: 80000,
    containerId: 'sidebar',
    smooth: true
  })
}, [])

to start scroll in a container when a page loads, however, any action outside of this container stops the scrolling. I would like it to continue regardless of what I do outside of it. Is it possible?

I tried to call scroller.scrollTo again after the scroll was paused (for example if a click changed a state) but it wouldn't resume.

ilyador avatar Nov 23 '21 02:11 ilyador

Having this same issue

nigel-loops avatar Feb 02 '22 10:02 nigel-loops