webview.drag({
'direction': dir,
'moveMode': 'followFinger'
}, {
'view': view,
'moveMode': 'follow'
},
function(res) {
if(localStorage.getItem('isSwiper') == '1') {
console.log(localStorage.getItem('isSwiper'));
return;
}
if(res.type === 'end' && res.result) { //拖拽完成
this._dragCallback(dir, webview, view, viewId);
}
}.bind(this)
)
1***@qq.com
- 发布:2018-11-05 14:19
- 更新:2018-11-28 11:11
- 阅读:1629
1 个回复
1***@qq.com
roadLinePage1.drag({
'direction': 'left',
'moveMode': 'silent'
})