I’m using Vue3 and NuxtJS,but it seems like scroll event wont fire. Nothing happens after I scroll,nor I don’t have any errors
methods: {
handleScroll () {
console.log('scrolled')
}
},
created(){
if(process.client){
window.addEventListener('scroll', this.handleScroll);
console.log(window)
}
},
destroyed () {
if(process.client){
window.removeEventListener('scroll', this.handleScroll);
}
}