Showing
1 changed file
with
6 additions
and
0 deletions
@@ -25,6 +25,7 @@ var start = 0, | @@ -25,6 +25,7 @@ var start = 0, | ||
25 | lazyLoad($('img.lazy')); | 25 | lazyLoad($('img.lazy')); |
26 | 26 | ||
27 | $('.nav-btn').on('touchstart', function(event) { | 27 | $('.nav-btn').on('touchstart', function(event) { |
28 | + $sideNav.css('pointer-events', 'none'); | ||
28 | $mobileWrap.addClass('menu-open'); | 29 | $mobileWrap.addClass('menu-open'); |
29 | $overlay.show().css('opacity', 0.3); | 30 | $overlay.show().css('opacity', 0.3); |
30 | $sideNav.addClass('on'); | 31 | $sideNav.addClass('on'); |
@@ -37,6 +38,11 @@ $('.nav-btn').on('touchstart', function(event) { | @@ -37,6 +38,11 @@ $('.nav-btn').on('touchstart', function(event) { | ||
37 | height: $(window).height(), | 38 | height: $(window).height(), |
38 | overflow: 'hidden' | 39 | overflow: 'hidden' |
39 | }); | 40 | }); |
41 | + | ||
42 | + setTimeout(function() { | ||
43 | + $sideNav.css('pointer-events', 'auto'); | ||
44 | + }, 400); | ||
45 | + | ||
40 | return false; | 46 | return false; |
41 | }); | 47 | }); |
42 | 48 |
-
Please register or login to post a comment