Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorpatrickhlauke <redux@splintered.co.uk>2018-11-03 02:51:17 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-11-04 15:40:19 +0300
commitc46a0c7e88523523fef5335705bb98aeceba9fe4 (patch)
tree0159f408eb9d8f8c84c4052ddce27a834860cec0 /js/src
parent9cc237d0ba1eda0b7ca96cdbfbbf2df9a11c4d4c (diff)
Replace touch-action: none with pan-y, remove preventDefault from touch event handling
Diffstat (limited to 'js/src')
-rw-r--r--js/src/carousel.js3
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