diff options
author | XhmikosR <xhmikosr@gmail.com> | 2018-11-24 19:22:59 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-11-25 12:46:37 +0300 |
commit | 5c336d0247cd94ed56ac24d941f86325df474313 (patch) | |
tree | 8e905679661cec26543ded7bae9a8d53f5ed6cd9 /js/dist/carousel.js | |
parent | fdc5c1f49ab3f826fcff79c78fc0fd9adf19a6fb (diff) |
Dist
Diffstat (limited to 'js/dist/carousel.js')
-rw-r--r-- | js/dist/carousel.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/js/dist/carousel.js b/js/dist/carousel.js index 450f1f74e3..a329a338af 100644 --- a/js/dist/carousel.js +++ b/js/dist/carousel.js @@ -113,10 +113,7 @@ TOUCHMOVE: "touchmove" + EVENT_KEY, TOUCHEND: "touchend" + EVENT_KEY, POINTERDOWN: "pointerdown" + EVENT_KEY, - POINTERMOVE: "pointermove" + EVENT_KEY, POINTERUP: "pointerup" + EVENT_KEY, - POINTERLEAVE: "pointerleave" + EVENT_KEY, - POINTERCANCEL: "pointercancel" + EVENT_KEY, DRAG_START: "dragstart" + EVENT_KEY, LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY @@ -323,7 +320,7 @@ } var start = function start(event) { - if (_this3._pointerEvent && (event.originalEvent.pointerType === PointerType.TOUCH || event.originalEvent.pointerType === PointerType.PEN)) { + if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { _this3.touchStartX = event.originalEvent.clientX; } else if (!_this3._pointerEvent) { _this3.touchStartX = event.originalEvent.touches[0].clientX; @@ -340,7 +337,7 @@ }; var end = function end(event) { - if (_this3._pointerEvent && (event.originalEvent.pointerType === PointerType.TOUCH || event.originalEvent.pointerType === PointerType.PEN)) { + if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX; } |