...
|
...
|
@@ -50,12 +50,12 @@ function hideSideBar() { |
|
|
}
|
|
|
}
|
|
|
|
|
|
$('.overlay').on('touchstart', function(e) {
|
|
|
$overlay.on('touchstart', function() {
|
|
|
hideSideBar();
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
$sideNav.on('touchmove', function(e) {
|
|
|
$sideNav.on('touchmove', function() {
|
|
|
return false;
|
|
|
});
|
|
|
|
...
|
...
|
@@ -75,13 +75,14 @@ $sideNav.on('touchend', 'li', function(e) { |
|
|
|
|
|
// 返回一级导航,收起二级导航
|
|
|
$subNav.each(function() {
|
|
|
$(this).find('li').eq(0).on('touchend', function() {
|
|
|
$(this).find('li').eq(0).on('touchstart', function() {
|
|
|
|
|
|
$sideNav.css('pointer-events', 'none');
|
|
|
setTimeout(function() {
|
|
|
$('.sub-nav').removeClass('show');
|
|
|
$sideNav.css('pointer-events', 'auto');
|
|
|
}, 400);
|
|
|
|
|
|
$('.sub-nav').removeClass('show');
|
|
|
});
|
|
|
}).on('touchstart', function(e) {
|
|
|
if (e.currentTarget !== e.target) {
|
...
|
...
|
|