I have the following:
var onScroll = function () {
alert('scroll');
};
scrollArea = $('body');
scrollArea.on('scroll', onScroll);
I can do $('body').scrollTop(400) and the body scrolls fine, but the alert is never called when I manually scroll. What could be causing this?