Scroll Position on iOS?


#1

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.


#2

bump Does anyone know?


#3

This helped:

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