I am working on a Vue project.
I am trying to implement a feature where a component is hidden while the user scrolls, but then reappears once the scrolling stops.
I have tried using a scroll event, but the component does not show up again.
<div class="table" @scroll="handleScroll()">
.....
</div>
....
<div class="table" id="sumTable">
....
</div>
.....
methods: {
handleScroll() {
$('#sumTable').hide();
},
}
Is there a way to achieve this in Vue?