Commit 60d0c873 authored by hbcui1984's avatar hbcui1984

暂时屏蔽页面右滑关闭功能

parent 99ec7d27
(function($) {
//TODO 临时屏蔽右滑关闭,等识别更精确后再放开;
//全局配置(通常所有页面引用该配置,特殊页面使用mui.init({})来覆盖全局配置)
$.initGlobal({
swipeBack: true
});
// $.initGlobal({
// swipeBack: true
// });
var back = $.back;
$.back = function() {
var current = plus.webview.currentWebview();
......
......@@ -571,7 +571,7 @@
//监听右滑事件,若侧滑菜单未显示,右滑要显示菜单;
window.addEventListener("swiperight",function (e) {
//默认滑动角度在-45度到45度之间,都会触发右滑菜单,为避免误操作,可自定义限制滑动角度;
if(Math.abs(e.detail.angle)<9){
if(Math.abs(e.detail.angle)<4){
openMenu();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment