Update carousel.js
This commit is contained in:
parent
81f6db3cb9
commit
d2dd42dab4
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ class Carousel extends BaseComponent {
|
|||
this._config = this._getConfig(config)
|
||||
this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element)
|
||||
/* eslint-disable-next-line compat/compat */
|
||||
this._touchSupported = 'ontouchstart' in window || (('maxTouchPoints' in navigator) && (navigator.maxTouchPoints > 0))
|
||||
this._touchSupported = 'ontouchstart' in document.documentElement || (('maxTouchPoints' in navigator) && (navigator.maxTouchPoints > 0))
|
||||
this._pointerEvent = PointerEvent in window
|
||||
|
||||
this._addEventListeners()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue