Skip to content

Commit

Permalink
[ touch handle for autoplay ]
Browse files Browse the repository at this point in the history
Allows interruption of caroulse while swiping/touching
- properly address: kenwheeler#884
- closes kenwheeler#884
- fixes kenwheeler#1694
  • Loading branch information
simeydotme committed Jan 23, 2016
1 parent 11c339e commit 3b50d87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -2408,6 +2408,7 @@
slideCount;

_.dragging = false;
_.interrupted = false;

_.shouldClick = (_.touchObject.swipeLength > 10) ? false : true;

Expand Down Expand Up @@ -2565,6 +2566,8 @@
var _ = this,
touches;

_.interrupted = true;

if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) {
_.touchObject = {};
return false;
Expand Down

0 comments on commit 3b50d87

Please sign in to comment.