mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-08 14:46:34 +02:00
Replace touch-action: none with pan-y, remove preventDefault from touch event handling
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user