[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted. #423
Comments
给html元素添加一个css3属性
即可解决这个问题 |
我使用这个方法解决了问题 |
hi,
i added in
but still error |
try html {
touch-action: none;
} but it make cause a problem with the page scrolling in Android,caution while using |
因为最近一段时间比较忙没有顾得上这个问题,现在又遇到了,所以我自己尝试了直接修改swiper源文件1876行,将这段阻止默认事件的代码注释掉了,也不会报错,滑动底部接近于边缘的地方也不会触发swiper的滑动事件了,看起来好像正常了,然后测试了安卓与苹果,都很正常
|
mmm i still dont understand
where functions is? |
please, till now, i still cannot fix this problem |
e.cancelable && e.preventDefault() |
You can try add cssMode: true in option |
[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
Vue.js version and component version
Steps to reproduce
Global registration
Component code
It can still trigger a slide when it is about 5-10 pixels beneath the swiper component, and the following error is reported in the console
What is Expected?
He shouldn't be executed when sliding a component, because the sliding is out of the scope of the component, and the swiper parent element can see overflow: hidden; when I've looked through a lot of data and couldn't find the right answer, I think I should be here to find the answer
What is actually happening?
It may seem like an insignificant problem for a component, but it's unusual for him to be able to slide underneath and out of the component so he can trigger the slide.
The text was updated successfully, but these errors were encountered: