diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2021-03-23 16:27:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 16:27:46 +0300 |
commit | 9667438c1e8544b829b08c68d4ce1f36305297c8 (patch) | |
tree | ac5202a9e74636518d6af47dd7dcb112bdf7f832 /js/src | |
parent | b455390f475c206bb0c9ae3fb05b1d4374cdabdb (diff) |
Bump eslint-plugin-unicorn from 28.0.2 to 29.0.0 (#33435)
* Bump eslint-plugin-unicorn from 28.0.2 to 29.0.0
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 28.0.2 to 29.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v28.0.2...v29.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
* Fix lint failure
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
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 b14cbd1a23..fe53d583a9 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -284,11 +284,9 @@ class Carousel extends BaseComponent { const move = event => { // ensure swiping with one touch and not pinching - if (event.touches && event.touches.length > 1) { - this.touchDeltaX = 0 - } else { - this.touchDeltaX = event.touches[0].clientX - this.touchStartX - } + this.touchDeltaX = event.touches && event.touches.length > 1 ? + 0 : + event.touches[0].clientX - this.touchStartX } const end = event => { |