I’ve been trying to add an event to watch scrolling on an ion-content. Over the course of the betas, it looks like this was possible with addScrollEventListener(handler) in beta 0, onScrollEnd(callback) in beta 1, and onScrollElementTransitionEnd in beta 2 through 4. None of those types of options are listed in the api docs for beta 5 on up.
Is there a recommended way to do this in beta 9? I tried making my own scroll-tracking directive that attached to the ion-content, but the scroll actually happens in the scroll-content child of the ion-content, so I couldn’t get the scroll event. I could get a click event this way, so it was very close.
I saw @vandelaymention using addScrollListener instead of addScrollEventListener, but that was in January…
Cool! Yeah, that works for me. I did have that in the list of things I tried, but I think something in my packages wasn’t up to date. Thanks for the reply!
Anyone tested this kind of thing in iOS? Everything seems great for me in Chrome on the desktop: smooth scrolling, good framerates, nice transitions. But checking it out in Ionic View on the iPad doesn’t look so nice. At least the scrolling is smooth now, but the animations don’t start until the scroll is done. I’m not sure yet if this is just because I’m in Ionic View or if having a scroll listener is going to be bad in an iOS app. Will be compiling the XCode on a mac soon, I guess.