react-scroll
react-scroll copied to clipboard
Is it possible to prevent cancel unless scrolling inside a container?
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.
Having this same issue