2014-11-25 3 views
-2

알아야 할 요소는 스크롤 할 요소 (y 축)입니다.스크롤하는 요소 가져 오기

나는 다음과 같은 이벤트에 대해이 필요합니다

  • $(document).bind('touchmove', function (event)
  • $(document).bind('mousewheel DOMMouseScroll MozMousePixelScroll', function (event)

이러한 이벤트는 액세스 할 모든 요소에 스크롤하는 동안

+1

'event.target' ??? –

+0

': animated' ??? – Jai

답변

1

이를 사용할 수 있습니다

 $(document).bind('mousewheel DOMMouseScroll MozMousePixelScroll', function (event){ 
       console.log(event.target);// or alert it like below to know the id or any 
       alert(event.target.id); 
    });