Update carousel.js

This commit is contained in:
XhmikosR 2020-12-04 14:56:10 +02:00 committed by GitHub
parent 81f6db3cb9
commit d2dd42dab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()