Commit 20648ce7 authored by 崔红保's avatar 崔红保

解决首页侧滑菜单在android 4.4.2版本下触发不灵敏的问题

parent 48c06526
...@@ -543,6 +543,11 @@ ...@@ -543,6 +543,11 @@
mui.fire(index,"menu:open"); mui.fire(index,"menu:open");
} }
//在android4.4.2中的swipe事件,需要preventDefault一下,否则触发不正常
window.addEventListener('dragright', function(e) {
e.detail.gesture.preventDefault();
});
//监听右滑事件,若侧滑菜单未显示,右滑要显示菜单; //监听右滑事件,若侧滑菜单未显示,右滑要显示菜单;
window.addEventListener("swiperight",function (e) { window.addEventListener("swiperight",function (e) {
//默认滑动角度在-45度到45度之间,都会触发右滑菜单,为避免误操作,可自定义限制滑动角度; //默认滑动角度在-45度到45度之间,都会触发右滑菜单,为避免误操作,可自定义限制滑动角度;
......
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