Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
ab88767fdb30c6725eb8b71668476c2d1a586f56
1 parent
80b24ea6
测试fastclick效果
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
static/js/home/home.js
static/js/home/home.js
View file @
ab88767
...
...
@@ -41,8 +41,6 @@ $('.nav-btn').on('touchstart', function() {
$sideNav
.
css
(
'pointer-events'
,
'auto'
);
},
400
);
//innerScroll.disableScroll($sideNav);
return
false
;
});
...
...
@@ -82,13 +80,8 @@ $sideNav.on('touchend', 'li', function(e) {
// 返回一级导航,收起二级导航
$subNav
.
each
(
function
()
{
$
(
this
).
find
(
'li'
).
eq
(
0
).
on
(
'click'
,
function
()
{
$sideNav
.
css
(
'pointer-events'
,
'none'
);
setTimeout
(
function
()
{
$
(
'.sub-nav'
).
removeClass
(
'show'
);
$sideNav
.
css
(
'pointer-events'
,
'auto'
);
},
400
);
$
(
'.sub-nav'
).
removeClass
(
'show'
);
return
false
;
});
}).
on
(
'touchstart'
,
function
(
e
)
{
if
(
e
.
currentTarget
!==
e
.
target
)
{
...
...
Please
register
or
login
to post a comment