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)
}
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)
}