当scroll-view用在页面中,并且该页面还有下拉的操作,那么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与pages.json设置的"enablePullDownRefresh": true冲突。
解决:
既然跟"enablePullDownRefresh": true冲突,那么就删掉或者设置为false(如果页面没有下拉功能的话是可以行的)
另外一种就是在scroll-view标签里加上【@touchmove.stop】即可(只要scroll-view没有下拉的操作)。
<scroll-view @touchmove.stop></scroll-view>