Skip to content

Commit

Permalink
transitionless browsers now call transitionEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronOpfer committed Jan 11, 2013
1 parent 622d7d2 commit 576c9ec
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,13 +459,10 @@ Swipe.prototype = {

elem.style.left = to + 'px'; // callback after this line

if (_this._getElemIndex(elem) == _this.index) { // only call transition end on the main slide item
if (_this.delay) _this.begin();

_this.transitionEnd(_this.index, _this.slides[_this.index]);

if (_this.delay) _this.begin();

_this.transitionEnd(_this.index, _this.slides[_this.index]);

}

clearInterval(timer);

Expand Down

0 comments on commit 576c9ec

Please sign in to comment.