2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03: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
+3 -1
View File
@@ -268,7 +268,9 @@ class Carousel {
.on(Event.MOUSELEAVE, (event) => this.cycle(event))
}
this._addTouchEventListeners()
if (this._config.touch) {
this._addTouchEventListeners()
}
}
_addTouchEventListeners() {