From 39ae077837f4fa24689d23bbb08b24cb600287b3 Mon Sep 17 00:00:00 2001 From: patrickhlauke Date: Mon, 15 Oct 2018 22:29:47 +0100 Subject: [PATCH] Remove unnecessary pointer event listeners these may also be the cause of weird behavior in Chrome/Surface, where scrolling vertically triggers slide advance --- js/src/carousel.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/src/carousel.js b/js/src/carousel.js index 997424bfac..797d84bb03 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -328,9 +328,7 @@ class Carousel { if (this._pointerEvent) { $(this._element).on(Event.POINTERDOWN, (event) => start(event)) - $(this._element).on(Event.POINTERMOVE, (event) => move(event)) $(this._element).on(Event.POINTERUP, (event) => end(event)) - $(this._element).on(Event.POINTERLEAVE, (event) => end(event)) $(this._element).on(Event.POINTERCANCEL, (event) => end(event)) this._element.classList.add(ClassName.POINTER_EVENT)