当我在滚动动画过程中单击屏幕上的任意位置时,动画将停止。我想禁用它,并认为其中一种方法是在滚动过程中使整个屏幕不可点击。我试着创建指针事件: none onScroll,但它不起作用。有什么解决方案吗?
发布于 2021-03-28 17:39:53
使用ignoreCancelEvents属性:
<Link
activeClass="active"
to="secondInsideContainer"
spy={true}
smooth={true}
duration={9250}
ignoreCancelEvents={true} // <----- Add this line
containerId="containerElement"
>
Go to second element inside container
</Link>https://stackoverflow.com/questions/66839971
复制相似问题