react-scroll
react-scroll copied to clipboard
ignoreCancelEvents not working on scrollTo
I'm trying to develop a fullpage design with react scroll, I observed that during a scroll if the user clicked or had an interaction, it stopped the scroll animation. The ignoreCancelEvents property helped me to fix this problem on Link <> but on my scrollTo functions, it does not fix it :
const Scroller = (wheel, anchor) => {
if(wheel > 0 && anchor === "home" ){
scroll.scrollToBottom("body", {
spy: true,
smooth: true,
duration: 500,
ignoreCancelEvents: true
})} else if(wheel < 0 && anchor === "body"){
scroll.scrollToTop("home", {
spy: true,
smooth: true,
duration: 500,
ignoreCancelEvents: true
})
}
}
Hm, interresting, let me look into it.