JS обнаружил прокрутку

window.onscroll = function (e) {  
// called when the window is scrolled.  
} 
Borma