0
내 프로젝트는 가로 스크롤 전용입니다. 어떤 의미 X.페이지 스크롤을 사용하거나 사용하지 않도록 설정하는 방법
#landscape
전체 컨테이너입니다.
먼저, #landscape
에 대한 스크롤을 비활성화합니다.
는 그 후 나는에 .close-reveal-modal
div
페이드를 클릭하면.
을이 div
에서 나는 여전히 $('#landscape')
을 스크롤 할 수 없습니다. 그 후, .close-reveal-modal
을 닫은 후에 $('#landscape')
에 대한 스크롤을 다시 사용 가능하게하고 싶습니다.
나는 피곤해서 $('#landscape').off
을 쓰면 어떨까요. 그러나 그것은 나를 위해 작동하지 않습니다.
$('#landscape').on('scroll touchmove mousewheel', function(e){ // on off means enable and disable
e.preventDefault();
e.stopPropagation();
return false;
})
$('.close-reveal-modal').click(function(){
setTimeout(function(){
$('#second_load').fadeIn(300);
}, 1000);
});
$('#second_load').click(function(){
$('#second_load').fadeOut(300);
$('#landscape').off('scroll touchmove mousewheel', function(e){ // on off means enable and disable
e.preventDefault();
e.stopPropagation();
return false;
})
});
나는 코드를 시도했다. 나는 정확하게 적용되는지 확신하지 못한다. 그러나 그것은 나를 위해 작동하지 않습니다. –