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:
@@ -268,7 +268,9 @@ class Carousel {
|
||||
.on(Event.MOUSELEAVE, (event) => this.cycle(event))
|
||||
}
|
||||
|
||||
this._addTouchEventListeners()
|
||||
if (this._config.touch) {
|
||||
this._addTouchEventListeners()
|
||||
}
|
||||
}
|
||||
|
||||
_addTouchEventListeners() {
|
||||
|
Reference in New Issue
Block a user