diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-09-07 18:37:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 18:37:44 +0300 |
commit | 0d81d3cbc14dfcdca8a868e3f25189a4f1ab273c (patch) | |
tree | d9edfb06a0a5718209bf6db9b020b4ec003c6fde /js/dist/carousel.js | |
parent | b6855ae13817f516f63bd2916ead5243e07f210b (diff) |
Release v5.1.1 (#34869)v5.1.1
* Prepare v5.1.1.
* Dist
Diffstat (limited to 'js/dist/carousel.js')
-rw-r--r-- | js/dist/carousel.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/js/dist/carousel.js b/js/dist/carousel.js index e7a5bd3239..bd7a8509ab 100644 --- a/js/dist/carousel.js +++ b/js/dist/carousel.js @@ -1,5 +1,5 @@ /*! - * Bootstrap carousel.js v5.1.0 (https://getbootstrap.com/) + * Bootstrap carousel.js v5.1.1 (https://getbootstrap.com/) * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ @@ -18,7 +18,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.1.0): util/index.js + * Bootstrap (v5.1.1): util/index.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ @@ -190,7 +190,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.1.0): carousel.js + * Bootstrap (v5.1.1): carousel.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ @@ -415,8 +415,12 @@ } _addTouchEventListeners() { + const hasPointerPenTouch = event => { + return this._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH); + }; + const start = event => { - if (this._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) { + if (hasPointerPenTouch(event)) { this.touchStartX = event.clientX; } else if (!this._pointerEvent) { this.touchStartX = event.touches[0].clientX; @@ -429,7 +433,7 @@ }; const end = event => { - if (this._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) { + if (hasPointerPenTouch(event)) { this.touchDeltaX = event.clientX - this.touchStartX; } |