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:
parent
6be7293a85
commit
39ae077837
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user