Background:
I\'m writing a component that opens up a sub-menu on click. I can\'t know where this component will be placed on the page or how far it will
You need to see whether scroll is happening to window level or to an element level. Usually in your case '*' should suffice.
$('*').scroll(function() { alert('scroll'); });
Here is updated link: http://jsfiddle.net/wAadt/1