diff --git a/src/iscroll.js b/src/iscroll.js index e2ab34e2..4ba4b5e5 100644 --- a/src/iscroll.js +++ b/src/iscroll.js @@ -967,7 +967,9 @@ iScroll.prototype = { scrollToPage: function (pageX, pageY, time) { var that = this, x, y; - + + if (that.options.onScrollStart) that.options.onScrollStart.call(that); + if (that.options.snap) { pageX = pageX == 'next' ? that.currPageX+1 : pageX == 'prev' ? that.currPageX-1 : pageX; pageY = pageY == 'next' ? that.currPageY+1 : pageY == 'prev' ? that.currPageY-1 : pageY;