bug说明:node
Mint-ui中loadmore(上拉加载下拉刷新)组件 在 使用fastclick的状况下ios
,在ios设备中滑动会触发点击事件;ui
解决方法:this
我是按需引入,去项目中找到loadmore下的index.js,所有引入的要找mint下面mint-ui.common.jsspa
路径以下:你的项目名/node_modules\mint-ui\lib\loadmore\index.js事件
搜索 handleTouchEnd ,记得写event进去get
handleTouchEnd: function handleTouchEnd(event) {...}
而后在down和up两个事件中加入 我标注的红字便可!io
if (this.direction === 'down' && this.getScrollTop(this.scrollEventTarget) === 0 && this.translate > 0) {
event.preventDefault();
event.stopPropagation();
...
if (this.direction === 'up' && this.bottomReached && this.translate < 0) {
event.preventDefault();
event.stopPropagation();
...
困扰了好久终于搞定,一样遇到这个问题的小伙伴能够照个人方法去作了!!