Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230058

Get current ion-content scroll position

$
0
0

I have to set scrollEvents to true in ion-content and then I was able to get the event.

//View
<ion-content (ionScroll)="getScrollY($event)" scrollEvents="true">
//Component
getScrollY(event: any)
  {
      console.log(event.detail.currentY)
  }

Viewing all articles
Browse latest Browse all 230058

Trending Articles



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