text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueDragScroll=t():e.VueDragScroll=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dragscroll=void 0;var o=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(o),i={install:function(e,t){var n=Number(e.version.split(".")[0]),o=Number(e.version.split(".")[1]);if(n<2&&o<1)throw new Error("v-dragscroll supports vue version 2.1 and above. You are using Vue@"+e.version+". Please upgrade to the latest version of Vue.");e.directive("dragscroll",r.default)}};"undefined"!=typeof window&&window.Vue&&(window.VueDragscroll=i,window.Vue.use(i)),t.dragscroll=r.default,t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(o),i=["mousedown","touchstart"],u=["mousemove","touchmove"],d=["mouseup","touchend"],l=function(e,t,n){var o=function(){var o=void 0,l=void 0,c=void 0,a=!1;e.md=function(n){var r=n.pageX?n.pageX:n.touches[0].pageX,i=n.pageY?n.pageY:n.touches[0].pageY,u="nochilddrag"===t.arg,d="firstchilddrag"===t.arg,s=document.elementFromPoint(r-window.pageXOffset,i-window.pageYOffset)===e,a=document.elementFromPoint(r-window.pageXOffset,i-window.pageYOffset)===e.firstChild,f=function(e){c=1,o=e.clientX?e.clientX:e.touches[0].clientX,l=e.clientY?e.clientY:e.touches[0].clientY,e.preventDefault()};u?s&&f(n):d?(s||a)&&f(n):f(n)},e.mu=function(){c=0,a&&s(n,"dragscrollend"),a=!1},e.mm=function(r){var i=void 0,u=void 0,d={};c&&(a||s(n,"dragscrollstart"),a=!0,t.modifiers.x?(i=-o+(o=r.clientX?r.clientX:r.touches[0].clientX),e.scrollLeft-=i,e===document.body&&(e.scrollLeft-=i),d.deltaX=-i):t.modifiers.y?(u=-l+(l=r.clientY?r.clientY:r.touches[0].clientY),e.scrollTop-=u,e===document.body&&(e.scrollTop-=u),d.deltaY=-u):(i=-o+(o=r.clientX?r.clientX:r.touches[0].clientX),u=-l+(l=r.clientY?r.clientY:r.touches[0].clientY),e.scrollLeft-=i,e.scrollTop-=u,e===document.body&&(e.scrollLeft-=i,e.scrollTop-=u),d.deltaX=-i,d.deltaY=-u),s(n,"dragscrollmove",d))},r.default.addEventListeners(e,i,e.md),r.default.addEventListeners(window,d,e.mu),r.default.addEventListeners(window,u,e.mm)};void 0===t.value||!0===t.value?"complete"===document.readyState?o():window.addEventListener("load",o):(t.value&&console.error("The passed value should be either 'undefined', 'true' or 'false'."),r.default.removeEventListeners(e,i,e.md),r.default.removeEventListeners(window,d,e.mu),r.default.removeEventListeners(window,u,e.mm))},s=function(e,t,n){if(e.componentInstance)e.componentInstance.$emit(t,n);else{var o=void 0;window.CustomEvent?o=new window.CustomEvent(t,{detail:n}):(o=document.createEvent("CustomEvent"),o.initCustomEvent(t,!0,!0,n)),e.elm.dispatchEvent(o)}};t.default={bind:function(e,t,n){l(e,t,n)},update:function(e,t,n,o){t.value!==t.oldValue&&l(e,t,n)},unbind:function(e,t,n){r.default.removeEventListeners(e,i,e.md),r.default.removeEventListeners(window,d,e.mu),r.default.removeEventListeners(window,u,e.mm)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={addEventListeners:function(e,t,n){for(var o=0,r=t.length;o<r;o++)e.addEventListener(t[o],n)},removeEventListeners:function(e,t,n){for(var o=0,r=t.length;o<r;o++)e.removeEventListener(t[o],n)}}}])});
  //# sourceMappingURL=vue-dragscroll.min.js.map