Authored by 梁志锋

侧边栏点透问题

... ... @@ -25,18 +25,24 @@ var start = 0,
lazyLoad($('img.lazy'));
$('.nav-btn').on('touchstart', function(event) {
$sideNav.css('pointer-events', 'none');
$mobileWrap.addClass('menu-open');
$overlay.show().css('opacity', 0.3);
$sideNav.addClass('on');
openSideNav = true;
event.preventDefault();
event.stopPropagation();
openSideNav = true;
//设置boy高宽,页面不能上下滑动
$('body').css({
height: $(window).height(),
overflow: 'hidden'
});
setTimeout(function() {
$sideNav.css('pointer-events', 'auto');
}, 400);
return false;
});
... ...