jquery로 스크롤 막기/풀기

-- JQuery 2018. 3. 12. 15:44
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
<html>
<body>
    <div id="container">
    </div>
</body>
</html>

// 막기
$('#container').on('scroll touchmove mousewheel', function(event) {
  event.preventDefault();
  event.stopPropagation();
  return false;
});

// 풀기
$('#container').off('scroll touchmove mousewheel');


posted by 어린왕자악꿍