-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ionContent onScrollComplete parameters undefined #2464
Comments
I'll have to look in to this some more, but it looks like you never define |
@drewrygh the This is a problem with the html example: <ion-content ng-controller="MyCtrl" on-scroll-complete="scrollFinish(scrollTop, scrollLeft)"> js example: MyApp.controller('MyCtrl', function($scope) {
$scope.scrollFinish = function(scrollTop, scrollLeft) {
console.log('onScrollComplete');
console.log(scrollTop);
console.log(scrollLeft);
};
}); I can get the onScrollComplete console message, but scrollTop and scrollLeft are undefined. Am I not doing something right? I'm pretty sure this is all I need to do. If |
@drewrygh did you check into this any further? |
In content.js, line 126:
The
scrollTop
andscrollLeft
parameters are undefined, becausethis
is a reference to thescrollViewOptions
object, and the members__scrollTop
and__scrollLeft
are never populated as far as I can tell.codepen example (you'll need to look at console logs to see result of on-scroll-complete handler)
The text was updated successfully, but these errors were encountered: