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
48c06526
Commit
48c06526
authored
Dec 27, 2014
by
崔红保
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决右滑菜单在androd 4.4.2版本上触发不灵敏的问题
parent
75cce942
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
examples/hello-mui/examples/offcanvas-drag-right-plus-main.html
...es/hello-mui/examples/offcanvas-drag-right-plus-main.html
+8
-1
No files found.
examples/hello-mui/examples/offcanvas-drag-right-plus-main.html
View file @
48c06526
...
@@ -224,6 +224,13 @@
...
@@ -224,6 +224,13 @@
//点击左上角图标,打开侧滑菜单;
//点击左上角图标,打开侧滑菜单;
document
.
querySelector
(
'
.mui-icon-bars
'
).
addEventListener
(
'
tap
'
,
openMenu
);
document
.
querySelector
(
'
.mui-icon-bars
'
).
addEventListener
(
'
tap
'
,
openMenu
);
//在android4.4.2中的swipe事件,需要preventDefault一下,否则触发不正常
window
.
addEventListener
(
'
dragright
'
,
function
(
e
)
{
e
.
detail
.
gesture
.
preventDefault
();
});
window
.
addEventListener
(
'
dragleft
'
,
function
(
e
)
{
e
.
detail
.
gesture
.
preventDefault
();
});
//主界面向右滑动,若菜单未显示,则显示菜单;否则不做任何操作;
//主界面向右滑动,若菜单未显示,则显示菜单;否则不做任何操作;
window
.
addEventListener
(
"
swiperight
"
,
openMenu
);
window
.
addEventListener
(
"
swiperight
"
,
openMenu
);
//主界面向左滑动,若菜单已显示,则关闭菜单;否则,不做任何操作;
//主界面向左滑动,若菜单已显示,则关闭菜单;否则,不做任何操作;
...
@@ -242,4 +249,4 @@
...
@@ -242,4 +249,4 @@
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
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