Issues with $ionicScrollDelegate


#1

I’ve been having an issue with $ionicScrollDelegate that I haven’t been able to find an answer for here in the forum. I am trying to use the $event data to scroll towards a specific element… however, the scrollTo does not seem to work at all when I approach it this way (even if i substitute a hardcoded value for the position variable in the below example. The specific delegate already works in some other contexts (which I use for scroll snapping).

vm.toggleDetails = function(event){
      var position = event.layerY;
      $ionicScrollDelegate.$getByHandle('transactionDelegate').scrollTo(0, position, true);