Scroll Position on iOS?


Does scroll position not work on iOS using $ionicScrollDelegate.getScrollPosition(); in correlation with on-scroll?

I get into my function on the on-scroll event but top and left properties are always 0 on iOS. The values work as expected on desktop.


bump Does anyone know?


This helped:

For me, I ended up just needing to add scope-delegate=“scrollItem” to the div and use $ionicScrollDelegate.$getByHandle(‘scrollItem’).getScrollPosition().top;