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
20648ce7
Commit
20648ce7
authored
Dec 27, 2014
by
崔红保
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决首页侧滑菜单在android 4.4.2版本下触发不灵敏的问题
parent
48c06526
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
examples/hello-mui/list.html
examples/hello-mui/list.html
+6
-1
No files found.
examples/hello-mui/list.html
View file @
20648ce7
...
@@ -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度之间,都会触发右滑菜单,为避免误操作,可自定义限制滑动角度;
...
...
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