Skip to content

Commit

Permalink
Merge pull request #236 from sheff/master
Browse files Browse the repository at this point in the history
[touch] b-slider: fix slider index counting
  • Loading branch information
Kir Belevich committed Jul 17, 2012
1 parent 3880e55 commit 8279de2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks-touch/b-slider/b-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
}

// индекс текущего экрана
if (this._perScreen && this._index >= 1) {
if (this._perScreen && this._index > 0) {
this._index--;
}
// слайд влево
Expand All @@ -423,7 +423,7 @@
}

// индекс текущего экрана
if (this._perScreen && this._index <= this._count) {
if (this._perScreen && this._index < this._count - 1) {
this._index++;
}
}
Expand Down

0 comments on commit 8279de2

Please sign in to comment.