Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Mar 6, 2014
1 parent 92d2e1c commit 8cd07b8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/idangerous.swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,15 @@ var Swiper = function (selector, params) {
}, 1000 / 60);
}
else {
if (params.onSlideChangeEnd) _this.fireCallback(params.onSlideChangeEnd, _this);
if (params.onSlideChangeEnd) {
if (action === 'to') {
if (toOptions.runCallbacks === true) _this.fireCallback(params.onSlideChangeEnd, _this);
}
else {
_this.fireCallback(params.onSlideChangeEnd, _this);
}

}
_this.setWrapperTranslate(newPosition);
_this._DOMAnimating = false;
}
Expand Down

0 comments on commit 8cd07b8

Please sign in to comment.