diff options
| author | XhmikosR <[email protected]> | 2018-11-24 18:22:59 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-11-25 11:46:37 +0200 |
| commit | 5c336d0247cd94ed56ac24d941f86325df474313 (patch) | |
| tree | 8e905679661cec26543ded7bae9a8d53f5ed6cd9 /js/dist/carousel.js | |
| parent | fdc5c1f49ab3f826fcff79c78fc0fd9adf19a6fb (diff) | |
| download | bootstrap-5c336d0247cd94ed56ac24d941f86325df474313.tar.xz bootstrap-5c336d0247cd94ed56ac24d941f86325df474313.zip | |
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 450f1f74e..a329a338a 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; } |
