aboutsummaryrefslogtreecommitdiff
path: root/js/src/carousel.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/carousel.js')
-rw-r--r--js/src/carousel.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js
index 509f7ca9d..a5451538c 100644
--- a/js/src/carousel.js
+++ b/js/src/carousel.js
@@ -118,7 +118,7 @@ class Carousel {
this._element = element
this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element)
this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0
- this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent)
+ this._pointerEvent = Boolean(window.PointerEvent)
this._addEventListeners()
Data.setData(element, DATA_KEY, this)
@@ -478,13 +478,10 @@ class Carousel {
EventHandler
.one(activeElement, TRANSITION_END, () => {
- nextElement.classList.remove(directionalClassName)
- nextElement.classList.remove(orderClassName)
+ nextElement.classList.remove(directionalClassName, orderClassName)
nextElement.classList.add(CLASS_NAME_ACTIVE)
- activeElement.classList.remove(CLASS_NAME_ACTIVE)
- activeElement.classList.remove(orderClassName)
- activeElement.classList.remove(directionalClassName)
+ activeElement.classList.remove(CLASS_NAME_ACTIVE, orderClassName, directionalClassName)
this._isSliding = false