code: function animateScrollStep() {
            var currentTime = Date.now(),
              time = Math.min(1, ((currentTime - start) / duration)),
            // where .5 would be 50% of time on a linear scale easedT gives a
            // fraction based on the easing method
              easedT = easeOutCubic(time);
  
            if (fromY != Y) {
              self.el.scrollTop = parseInt((easedT * (Y - fromY)) + fromY, 10);
            }
            if (fromX != X) {
              self.el.scrollLeft = parseInt((easedT * (X - fromX)) + fromX, 10);
            }
  
            if (time < 1) {
              ionic.requestAnimationFrame(animateScrollStep);
  
            } else {
              // done
              ionic.tap.removeClonedInputs(self.__container, self);
              self.el.style.overflowX = oldOverflowX;
              self.el.style.overflowY = oldOverflowY;
              self.resize();
            }
          }
docs: scroll loop