jquery - Catch all scroll events on page -


i need little help. have created own context menu right click , want behave classic 1 - dissapear after scroll. problem have more scrollbars in layout, question is, how catch scroll events on page? have tried examle $(document).scroll() works main scrollbar, have tried use .on("scroll", function(){}); on main container, doesn't work @ :(

so ideas please?

thanks, david

i suggest adding classes scrollable elements, such class="scrollable", , selector on class. requires dirty work in adding class, efficiently job done.

$(document).add('.scrollable').on('scroll', function() {     alert("action here"); }); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -