What is the best way to observe the scroll over an element with overflow set?

Posted by Phunky on Stack Overflow See other posts from Stack Overflow or by Phunky
Published on 2010-03-09T09:07:23Z Indexed on 2010/03/09 9:21 UTC
Read the original article Hit count: 108

Filed under:
|
|
|
|

It's simple to observe the documents scroll event but I can't seem to find anything relating to the scroll of any other element with css property overflow being set?

To get around this myself i've been observing mousemove which only fires while you hold down on the scrollbar but this would need to be teamed with a mouse wheel observe also to get the full effect.

Could anyone point me in the right direction for a better way of implementing this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom