What I'm trying to achieve is that this code should run, until you've scrolled past a certain point where the last page hits the top of the window, and from there on you should be able to scroll without the 'snapping'. When you scroll back up to pages above this last one, it should run again.
var $windows = $('.windows');
Any ideas? Thanks in advance,