Skip to content

Commit

Permalink
Update devDependencies
Browse files Browse the repository at this point in the history
* @babel/cli              ^7.13.0  →  ^7.13.10
* @babel/core             ^7.13.8  →  ^7.13.10
* @babel/preset-env       ^7.13.9  →  ^7.13.12
* autoprefixer            ^10.2.4  →   ^10.2.5
* clean-css-cli            ^5.2.0  →    ^5.2.2
* eslint                  ^7.21.0  →   ^7.22.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.2.0
* postcss                  ^8.2.6  →    ^8.2.8
* qunit                   ^2.14.0  →   ^2.14.1
* rollup                  ^2.40.0  →   ^2.42.3
* 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
  • Loading branch information
XhmikosR committed Mar 23, 2021
1 parent b1d4f1d commit 3b7a119
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 253 deletions.
8 changes: 3 additions & 5 deletions js/src/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
Loading

0 comments on commit 3b7a119

Please sign in to comment.