Skip to content

Commit

Permalink
Merge branch 'v4-dev' into v4-dev-xmr-fix-blc
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 4, 2018
2 parents 9f9f94e + c46a0c7 commit 3885df2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions js/src/carousel.js
Expand Up @@ -283,14 +283,11 @@ class Carousel {
if (this._pointerEvent && (event.originalEvent.pointerType === PointerType.TOUCH || event.originalEvent.pointerType === PointerType.PEN)) {
this.touchStartX = event.originalEvent.clientX
} else if (!this._pointerEvent) {
event.preventDefault()
this.touchStartX = event.originalEvent.touches[0].clientX
}
}

const move = (event) => {
event.preventDefault()

// ensure swiping with one touch and not pinching
if (event.originalEvent.touches && event.originalEvent.touches.length > 1) {
this.touchDeltaX = 0
Expand Down
2 changes: 1 addition & 1 deletion scss/_carousel.scss
Expand Up @@ -16,7 +16,7 @@
}

.carousel.pointer-event {
touch-action: none;
touch-action: pan-y;
}

.carousel-inner {
Expand Down

0 comments on commit 3885df2

Please sign in to comment.