Authored by 梁志锋

侧边栏 逛返回按钮点透问题

... ... @@ -19,7 +19,6 @@ var $ = require('jquery'),
var start = 0,
swiperClass,
$logotrans = $('.home-header .logo'),
$choseArea = $('.side-nav .first'),
openSideNav = false,
isen = true;
... ... @@ -38,7 +37,7 @@ $('.nav-btn').on('touchstart', function(event) {
$sideNav.css('pointer-events', 'auto');
}, 400);
innerScroll.disableScroll($choseArea);
innerScroll.disableScroll($sideNav);
return false;
});
... ... @@ -54,7 +53,7 @@ function hideSideBar() {
}
$('.overlay').on('touchstart', function(e) {
innerScroll.enableScroll($choseArea);
innerScroll.enableScroll($sideNav);
hideSideBar();
return false;
});
... ... @@ -64,6 +63,7 @@ $sideNav.on('touchend', 'li', function(e) {
if ($(this).find('.sub-nav').size() > 0) {
$('.sub-nav').removeClass('show');
$(this).find('.sub-nav').addClass('show');
$(this).find('.highlight').removeClass('highlight');
}
if (e.target.pathname === location.pathname) {
... ... @@ -206,4 +206,4 @@ exports.set = function(c) {
});
};
require('./maybe-like')();
require('./maybe-like')();
\ No newline at end of file
... ...