Skip to content

Commit

Permalink
New option to disable swipes
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Sep 23, 2014
1 parent 45f8d56 commit fbe0caf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var Slider = function (container, params) {
spaceBetween: 0,
speed: 300,
slidesPerView: 1,
onlyExternal: false,
direction: 'horizontal',
paginationHide: true,
slideClass: 'slider-slide',
Expand Down Expand Up @@ -137,6 +138,7 @@ var Slider = function (container, params) {
}
};
s.onTouchStart = function (e) {
if (s.params.onlyExternal) return;
isTouched = true;
isMoved = false;
isScrolling = undefined;
Expand Down

0 comments on commit fbe0caf

Please sign in to comment.