Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

Scrolling events do not trigger on phone

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>