最近在学uni-app,写项目的时候使用 scroll-view 组件, 每次滚动,控制台都会报如下错误
[Intervention]Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted
问题背景: 如下图,红框使用的就是 scroll-view 组件,想要的效果是让红框内元素上下滑动
控制台报错:
在网上找了一下,有说是因为页面下拉刷新的影响,我也尝试了一下,去配置里取消了下拉刷新,并没有解决.
又仔细阅读了报错的翻译
觉得可能是蒙版阻止默认的修饰符与 scroll-view 组件有冲突,如下图,因为事件冒泡, scroll-view 组件的 touchmove 事件可以传递到模态框
于是我给 scroll-view 取消冒泡 报错没了,问题成功解决!