`
`$scope.onScroll = function () { console.log($ionicScrollDelegate.getScrollPosition()); };
i get Object {left: 0, top: 0, zoom: 1}
any ideas how to get the actual position?
`
`$scope.onScroll = function () { console.log($ionicScrollDelegate.getScrollPosition()); };
i get Object {left: 0, top: 0, zoom: 1}
any ideas how to get the actual position?
Use delegate-handle attribute on ion-scroll so that with ionicScrollDelegate you know exactly which scrolling element are you selecting.
See example:
thanks,
is there a way to know when the scroll stopped? so i can grab the last position values?
I’ve changed the codepen example a little bit to include timeout which will trigger when the scroll ends.
Unfortunately in Javascript there is no scroll end event and I guess timeout is the good option.
thanks for the update
that way I can see in real time where this position because I have a transparent header and when it reaches 100 should change color to red, as I can do that?