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