Showing
1 changed file
with
2 additions
and
9 deletions
@@ -41,8 +41,6 @@ $('.nav-btn').on('touchstart', function() { | @@ -41,8 +41,6 @@ $('.nav-btn').on('touchstart', function() { | ||
41 | $sideNav.css('pointer-events', 'auto'); | 41 | $sideNav.css('pointer-events', 'auto'); |
42 | }, 400); | 42 | }, 400); |
43 | 43 | ||
44 | - //innerScroll.disableScroll($sideNav); | ||
45 | - | ||
46 | return false; | 44 | return false; |
47 | }); | 45 | }); |
48 | 46 | ||
@@ -82,13 +80,8 @@ $sideNav.on('touchend', 'li', function(e) { | @@ -82,13 +80,8 @@ $sideNav.on('touchend', 'li', function(e) { | ||
82 | // 返回一级导航,收起二级导航 | 80 | // 返回一级导航,收起二级导航 |
83 | $subNav.each(function() { | 81 | $subNav.each(function() { |
84 | $(this).find('li').eq(0).on('click', function() { | 82 | $(this).find('li').eq(0).on('click', function() { |
85 | - | ||
86 | - $sideNav.css('pointer-events', 'none'); | ||
87 | - setTimeout(function() { | ||
88 | - $('.sub-nav').removeClass('show'); | ||
89 | - $sideNav.css('pointer-events', 'auto'); | ||
90 | - }, 400); | ||
91 | - | 83 | + $('.sub-nav').removeClass('show'); |
84 | + return false; | ||
92 | }); | 85 | }); |
93 | }).on('touchstart', function(e) { | 86 | }).on('touchstart', function(e) { |
94 | if (e.currentTarget !== e.target) { | 87 | if (e.currentTarget !== e.target) { |
-
Please register or login to post a comment