From fbe0caffb4a8f82bb9a1ba3f46a0bdd9465b2745 Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Tue, 23 Sep 2014 19:05:10 +0400 Subject: [PATCH] New option to disable swipes --- src/js/slider.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/slider.js b/src/js/slider.js index 76c8665c10..3d2478bce5 100644 --- a/src/js/slider.js +++ b/src/js/slider.js @@ -7,6 +7,7 @@ var Slider = function (container, params) { spaceBetween: 0, speed: 300, slidesPerView: 1, + onlyExternal: false, direction: 'horizontal', paginationHide: true, slideClass: 'slider-slide', @@ -137,6 +138,7 @@ var Slider = function (container, params) { } }; s.onTouchStart = function (e) { + if (s.params.onlyExternal) return; isTouched = true; isMoved = false; isScrolling = undefined;