diff --git a/README.md b/README.md index bc130fd..5ea3604 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ Swipe can take an optional second parameter – an object of key/value settings: | **stopPropagation** | Boolean | false | stop event propagation. | | **draggable** | Boolean | false | listen to mouse events in addition to the touch events | | **ignore** | String | null | ignore touch events on any element matching this selector | +| **freeMode** | Boolean | true | let slide through multiple slides | | **callback** | Function | null | runs at slide change. Three parameters are passed to the function: `index` (the current slide index)`elem` (the current slide element) and `dir` (direction: `1` for left or backward`-1` for right or forward). | | **transitionEnd** | Function | null | runs at the end of a slide transition. Two parameters are passed to the function: `index` (the current slide index) and `elem` (the current slide element). | diff --git a/build/swipe.min.js b/build/swipe.min.js index a51b134..c064f4f 100644 --- a/build/swipe.min.js +++ b/build/swipe.min.js @@ -1 +1 @@ -!function(t,e){t=t||{},"function"==typeof define&&define.amd?define([],function(){return t.Swipe=e(),t.Swipe}):"object"==typeof module&&module.exports?module.exports=e():t.Swipe=e()}(this,function(){var e,Q="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this,W=Q.document;function Swipe(r,a){"use strict";function e(){}function n(t){return!!t&&("boolean"!=typeof t.cancelable||t.cancelable)}var o,t,s={},u={},l=(a=a||{}).auto||0,i=!1,c=function(t){setTimeout(t||e,0)};Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;0<=--n&&e.item(n)!==this;);return-1m/2,i=!E&&0p/2,i=!g&&0