Vue Passive event
It's not very straight to understand the passive in event listener in Vue.
However, below code will help you to get a little bit inside of it.
</script>
However, below code will help you to get a little bit inside of it.
<script>
window.addEventListener('touchmove',event=>{
console.log(event);
event.preventDefault();
},{passive:true,once:true});
Comments
Post a Comment