From 3b50d8710acbdd4dffb8c51e9d304e4be0e52abe Mon Sep 17 00:00:00 2001 From: simeydotme Date: Sat, 23 Jan 2016 20:57:32 +0800 Subject: [PATCH] [ touch handle for autoplay ] Allows interruption of caroulse while swiping/touching - properly address: https://github.com/kenwheeler/slick/pull/884 - closes #884 - fixes #1694 --- slick/slick.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slick/slick.js b/slick/slick.js index 41b796f1e..4822c76ee 100644 --- a/slick/slick.js +++ b/slick/slick.js @@ -2408,6 +2408,7 @@ slideCount; _.dragging = false; + _.interrupted = false; _.shouldClick = (_.touchObject.swipeLength > 10) ? false : true; @@ -2565,6 +2566,8 @@ var _ = this, touches; + _.interrupted = true; + if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) { _.touchObject = {}; return false;