0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Remove unnecessary pointer event listeners

these may also be the cause of weird behavior in Chrome/Surface, where scrolling vertically triggers slide advance
This commit is contained in:
patrickhlauke 2018-10-15 22:29:47 +01:00 committed by XhmikosR
parent 6be7293a85
commit 39ae077837

View File

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