x***@gmail.com
x***@gmail.com
  • 发布:2018-07-06 18:13
  • 更新:2022-02-03 22:54
  • 阅读:1904

popGesture:none 没有效果

分类:wap2app

http://ask.dcloud.net.cn/article/102

在 plusReady 和 manifest.json 中设置none都没有效果,呜呜呜呜呜呜呜呜为什么?

function plusReady() {  
    ws = plus.webview.currentWebview();  
    ws.setPullToRefresh({  
        support: true,  
        height: '50px',  
        range: '200px',  
        contentdown: {  
            caption: '下拉可以刷新'  
        },  
        contentover: {  
            caption: '释放立即刷新'  
        },  
        contentrefresh: {  
            caption: '正在刷新...'  
        }  
    }, onRefresh);  
    ws.setStyle({'popGesture':'none'});  
    //  plus.nativeUI.toast('下拉可以刷新');  
}
2018-07-06 18:13 负责人:无 分享
已邀请:
DCloud_heavensoft

DCloud_heavensoft

mui里有tap事件,用于替代click。
不用mui的话,也可以自己集成fastclick.js

彼沥科技

彼沥科技

在manifest.json修改popGesture是没用的。

最新解决方案:
在sitemap.json中的global节点下的webviewParameter节点插入:

"popGesture": "none",

该问题目前已经被锁定, 无法添加新回复