window listen scroll event detect which scroll code example
Example: js detect scroll
window.onscroll = function (e) {
// called when the window is scrolled.
}
window.onscroll = function (e) {
// called when the window is scrolled.
}