[SCRIPT] js 마우스휠 이벤트 자바스크립트
2018.04.26
작성일/수정일
2018-04-26 15:26:58 / 2018-04-26 15:26:58
$(window).bind('mousewheel', function(event) { //마우스휠 감지
if (event.originalEvent.wheelDelta >= 0) { //마우스휠 위로 돌릴때 이벤트
log('Scroll up');
}
else { //마우스휠 아래로 돌릴때 이벤트
log('Scroll down');
}
});