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
DIV
I have similar issue. But in my case, I have a height: 100% on my body. Since, I just wanted to apply the scroll event in a special div only.
height: 100%
Then, this fixed the issue:
document.querySelector('#myDiv').addEventListener('scroll', () => { console.log('scroll event fired!') });