diff options
| author | XhmikosR <[email protected]> | 2021-04-05 07:35:59 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2021-04-05 07:44:39 +0300 |
| commit | 67f873f41aa2466f6b5a9be7909ee75f4abc8016 (patch) | |
| tree | 1c1e12c7ccdd13712cae9d1e19711b479224af2e /js/src | |
| parent | a06c2b67068bc18ff6ec9a854660a557dc2d1422 (diff) | |
| download | bootstrap-67f873f41aa2466f6b5a9be7909ee75f4abc8016.tar.xz bootstrap-67f873f41aa2466f6b5a9be7909ee75f4abc8016.zip | |
Update devDependencies
* @babel/cli ^7.13.0 → ^7.13.14
* @babel/core ^7.13.8 → ^7.13.14
* @babel/preset-env ^7.13.9 → ^7.13.12
* @rollup/plugin-commonjs ^17.1.0 → ^18.0.0
* @rollup/plugin-node-resolve ^11.2.0 → ^11.2.1
* autoprefixer ^10.2.4 → ^10.2.5
* clean-css-cli ^5.2.0 → ^5.2.2
* eslint ^7.21.0 → ^7.23.0
* eslint-plugin-unicorn ^28.0.2 → ^29.0.0
* globby ^11.0.2 → ^11.0.3
* hugo-bin ^0.69.0 → ^0.70.0
* karma ^6.1.1 → ^6.3.2
* postcss ^8.2.6 → ^8.2.9
* qunit ^2.14.0 → ^2.14.1
* rollup ^2.40.0 → ^2.44.0
* stylelint ^13.11.0 → ^13.12.0
Also lock jQuery to v3.5.1 since 3.6.0 has a bug that affects at least our tests
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/carousel.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js index b63d406bd..08a4df742 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -283,11 +283,9 @@ class Carousel { const move = event => { // ensure swiping with one touch and not pinching - if (event.originalEvent.touches && event.originalEvent.touches.length > 1) { - this.touchDeltaX = 0 - } else { - this.touchDeltaX = event.originalEvent.touches[0].clientX - this.touchStartX - } + this.touchDeltaX = event.originalEvent.touches && event.originalEvent.touches.length > 1 ? + 0 : + event.originalEvent.touches[0].clientX - this.touchStartX } const end = event => { |
