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
75cce942
Commit
75cce942
authored
Dec 27, 2014
by
崔红保
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决侧滑菜单在android 4.4.2版本下,滑动触发不灵敏的问题
parent
9a6be6d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
examples/hello-mui/examples/offcanvas-drag-left-plus-main.html
...les/hello-mui/examples/offcanvas-drag-left-plus-main.html
+8
-1
No files found.
examples/hello-mui/examples/offcanvas-drag-left-plus-main.html
View file @
75cce942
...
@@ -241,6 +241,13 @@
...
@@ -241,6 +241,13 @@
//点击侧滑图标,打开侧滑菜单;
//点击侧滑图标,打开侧滑菜单;
document
.
querySelector
(
'
.mui-action-menu
'
).
addEventListener
(
'
tap
'
,
openMenu
);
document
.
querySelector
(
'
.mui-action-menu
'
).
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
(
"
swipeleft
"
,
openMenu
);
window
.
addEventListener
(
"
swipeleft
"
,
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