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:
+3
-1
@@ -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