I'm trying to listen to window.scroll in a Nuxt3 Content v2 app using the composition api.
<script setup>
function handleScroll(){
console.log(window.pageYOffset)
}
if (process.client){
window.addEventListener('scroll', this.handleScroll );
}
</script>
This fires exactly once but does not continously log the pageYOffset. How do I listen to the scroll event correctly? The target is a static website and I will not use SSR.