1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 22:56:46 +02:00

Fix Carousel's touch option to not add touch listeners when set to false (#28046)

This commit is contained in:
Johann-S
2019-01-14 17:53:54 +01:00
committed by XhmikosR
parent 3d350c3b34
commit d51ee0dcf1
2 changed files with 18 additions and 3 deletions

View File

@@ -268,7 +268,9 @@ class Carousel {
.on(Event.MOUSELEAVE, (event) => this.cycle(event))
}
this._addTouchEventListeners()
if (this._config.touch) {
this._addTouchEventListeners()
}
}
_addTouchEventListeners() {