doesn't work window.onscroll
[issue link]Hi guys
I have a problem and don’t found the solution. I want to detect the scroll of the user, but when I try doesn’t work.
This is my code.
mounted () {
window.onscroll = e => {
console.log(e)
}
}
Too I put this code.
mounted () {
window.addEventListener('scroll', e => {
console.log(e)
}, false)
}
neither with window neither document
Thanks