Hello guys, i have following code
<template>
<ion-page>
<ion-content :scroll-events="true" @ionScroll="pullAnimation" class="ion-padding">
<div v-for="i in 60" :key="i">
<h1>dsadasdsad</h1>
</div>
</ion-content>
</ion-page>
</template>
<script>
import { IonContent, IonPage } from '@ionic/vue';
export default {
components: {
IonContent,
IonPage,
},
setup() {
const pullAnimation = () => {
alert('das');
};
return {
pullAnimation,
};
},
};
</script>
This generates alert when i scroll on chrome. But when i scroll on my phone nothing show, its like event isnt even fired up.
6 posts - 2 participants