All I\'m trying to do is to call a function when a DIV
is scrolled.For simplicity sake Im not specifying anything else. Also I am only looking at DOM compliant brow
i had the similar issue in my case. This code is correct but was not working because,
window.addEventListener("scroll", function () {
myFunc();
}, false);
scroll event wasn't firing. since my body was scrolling instead of documentElement.
I just removed height: 100%
from my body tag and then scroll event started firing.