Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mui
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mui
Commits
60d0c873
Commit
60d0c873
authored
Dec 04, 2014
by
hbcui1984
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂时屏蔽页面右滑关闭功能
parent
99ec7d27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
examples/hello-mui/js/app.js
examples/hello-mui/js/app.js
+4
-3
examples/hello-mui/list.html
examples/hello-mui/list.html
+1
-1
No files found.
examples/hello-mui/js/app.js
View file @
60d0c873
(
function
(
$
)
{
//TODO 临时屏蔽右滑关闭,等识别更精确后再放开;
//全局配置(通常所有页面引用该配置,特殊页面使用mui.init({})来覆盖全局配置)
$
.
initGlobal
({
swipeBack
:
true
});
// $.initGlobal({
// swipeBack: true
//
});
var
back
=
$
.
back
;
$
.
back
=
function
()
{
var
current
=
plus
.
webview
.
currentWebview
();
...
...
examples/hello-mui/list.html
View file @
60d0c873
...
...
@@ -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
();
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment