My project is built on nuxt.js with vue composition api
So, my scroll event is not firing because my container has overflow:hidden. Is there any way that I can have the scroll event fire up even when overflow is hidden?
HTML
<template>
<div id="test">
<full-page ref="fullpage" :options="options" id="fullpage">
<div class="title">Title</div>
<div class="details">Details</div>
<form>
<input type="text" placeholder="Name" name="your-name"/>
</form>
</full-page>
</div>
</template>
JS
function handleScroll(e: any) {
console.log('scrolled')
}
onMounted(() => {
const t = = document.getElementById('test')
t!.addEventListener('scroll', handleScroll)
}
The objective is to have the form to only show up with some animation whenever I scroll in this #test div, while having the rest of the elements fixed.
But for now I'm outputting a console log just to check if it works.