$(window).scroll() event not firing on SharePoint 2013

I had frustratingly had to dig around for this one a little bit after attempting many different event handlers on SharePoint for scrolling, not even a simple `console.log` was being executed.

This link on MSDN pointed me into the right direction. As it seems, they’ve decided to disable scrolling on the top level events in favour of making the ‘Ribbon’ and the general layout more accustomed to their Microsoft’esque needs.

Binding it to their custom ‘master’ div, instead of the body/window did the trick:

jQuery('#s4-workspace').bind( 'scroll', function(){

So now I can get back to my mansory.js implementation in a SharePoint subsite 😉