| 819 | }; |
| 820 | |
| 821 | var end = function end(event) { |
| 822 | if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { |
| 823 | _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX; |
| 824 | } |
| 825 | |
| 826 | _this3._handleSwipe(); |
| 827 | |
| 828 | if (_this3._config.pause === 'hover') { |
| 829 | // If it's a touch-enabled device, mouseenter/leave are fired as |
| 830 | // part of the mouse compatibility events on first tap - the carousel |
| 831 | // would stop cycling until user tapped out of it; |
| 832 | // here, we listen for touchend, explicitly pause the carousel |
| 833 | // (as if it's the second time we tap on it, mouseenter compat event |
| 834 | // is NOT fired) and after a timeout (to allow for mouse compatibility |
| 835 | // events to fire) we explicitly restart cycling |
| 836 | _this3.pause(); |
| 837 | |
| 838 | if (_this3.touchTimeout) { |
| 839 | clearTimeout(_this3.touchTimeout); |
| 840 | } |
| 841 | |
| 842 | _this3.touchTimeout = setTimeout(function (event) { |
| 843 | return _this3.cycle(event); |
| 844 | }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval); |
| 845 | } |
| 846 | }; |
| 847 | |
| 848 | $(this._element.querySelectorAll(Selector$2.ITEM_IMG)).on(Event$2.DRAG_START, function (e) { |
| 849 | return e.preventDefault(); |