in harness/app-assets/templates/assets/js/modules/MyScroll.js [35:64]
MyScroll.prototype._move = function(evt) {
if (this.startPos) {
var currentPage = this.currentPage.pageY,
currentTime,
absDx,
absDy,
origEvent = evt;
clearTimeout(this.moveTimeout);
this.moveTimeout = setTimeout(this.handleFailedSwipe.bind(this, origEvent), 50);
evt = evt.touches ? evt.touches[0] : evt;
absDx = Math.abs(evt.pageX - this.startPos.pageX);
absDy = Math.abs(evt.pageY - this.startPos.pageY);
if (this.scrollInProgress) {
this.ancestor.prototype._move.bind(this)(origEvent);
} else {
// if user is doing vertical swipe
// and is not at scroller's end
// or is at scroller's end but user is swiping up
// then start scroll
if (absDy > absDx &&
(!this.isScrollAtEnd() || (MyScroll.isElementInViewport(this.wrapper) && evt.pageY > this.startPos.pageY))) {
this._start(origEvent, true);
}
}
}
};