From 67f873f41aa2466f6b5a9be7909ee75f4abc8016 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 5 Apr 2021 07:35:59 +0300 Subject: Update devDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * @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 --- js/src/carousel.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'js/src') 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 => { -- cgit v1.2.3