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

ignoreCancelEvents not working on scrollTo

Open MatthiasTeks opened this issue 3 years ago • 1 comments

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
            })
        }
    }

MatthiasTeks avatar May 12 '22 08:05 MatthiasTeks

Hm, interresting, let me look into it.

fisshy avatar May 13 '22 04:05 fisshy