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