How do I programmatically scroll when overflow-scroll is enabled?


#1

If overflow-scroll=true is enabled on my ion-content container

$scope.scrollDown = function(){
  $ionicScrollDelegate.$getByHandle('myScroll').scrollTo(0, window.innerHeight, true);
}

This function no longer works. Wondering if there isa work aroudn to programmaically scroll while overflow-scroll=true?


#2

$ionicScrollDelegate will only work if the default scrolling is enabled.

Check out $anchorScroll

https://docs.angularjs.org/api/ng/service/$anchorScroll