Showing
1 changed file
with
2 additions
and
0 deletions
@@ -28,6 +28,8 @@ $('.nav-btn').on('touchstart', function(event) { | @@ -28,6 +28,8 @@ $('.nav-btn').on('touchstart', function(event) { | ||
28 | $mobileWrap.addClass('menu-open'); | 28 | $mobileWrap.addClass('menu-open'); |
29 | $overlay.show().css('opacity', 0.3); | 29 | $overlay.show().css('opacity', 0.3); |
30 | $sideNav.addClass('on'); | 30 | $sideNav.addClass('on'); |
31 | + event.preventDefault(); | ||
32 | + event.stopPropagation(); | ||
31 | openSideNav = true; | 33 | openSideNav = true; |
32 | 34 | ||
33 | //设置boy高宽,页面不能上下滑动 | 35 | //设置boy高宽,页面不能上下滑动 |
-
Please register or login to post a comment