Authored by 梁志锋

gulp ge文件提交

... ... @@ -1743,7 +1743,7 @@ function stopPropagation(e){
// return false;
}**/
var disableScroll = function(){
/**var disableScroll = function(){
$(document).on('mousewheel', preventDefault);
$(document).on('touchmove', preventDefault);
};
... ... @@ -1753,13 +1753,6 @@ var enableScroll = function(){
$(document).off('touchmove', preventDefault);
};
// bind
/**$('#closePopup').on('click', function(e){
$('#popupLayer').hide();
$('#bgMask').hide();
enableScroll();
});**/
// 内部可滚
$sideNav.on('touchmove mousewheel', stopPropagation);
... ... @@ -1772,7 +1765,7 @@ var startX, startY;
$sideNav.on('touchstart', function(e){
startX = e.originalEvent.touches[0].pageX;
startY = e.originalEvent.touches[0].pageY;
});
});**/
// 仿innerScroll方法
/**$sideNav.on('touchmove', function(e){
... ... @@ -1815,10 +1808,10 @@ $('.nav-btn').on('touchstart', function(event) {
openSideNav = true;
//设置boy高宽,页面不能上下滑动
/**$('body').css({
$('body').css({
height: $(window).height(),
overflow: 'hidden'
});**/
});
setTimeout(function() {
$sideNav.css('pointer-events', 'auto');
... ... @@ -1834,11 +1827,11 @@ function hideSideBar() {
$('.overlay').hide();
$('.sub-nav').removeClass('show');
$sideNav.removeClass('on');
/**$('body').css({
$('body').css({
height: 'auto',
overflow: 'auto'
});**/
enableScroll();
});
//enableScroll();
}
}
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.