diff options
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/carousel.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js index 3c7e2b2d91..550c48eb55 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -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 |