return this instead of addOne in disableScrollPropagation (#5595)
This commit is contained in:
parent
0688693d3b
commit
d30f7aad35
@ -179,7 +179,8 @@ export function stopPropagation(e) {
|
||||
// @function disableScrollPropagation(el: HTMLElement): this
|
||||
// Adds `stopPropagation` to the element's `'mousewheel'` events (plus browser variants).
|
||||
export function disableScrollPropagation(el) {
|
||||
return addOne(el, 'mousewheel', stopPropagation);
|
||||
addOne(el, 'mousewheel', stopPropagation);
|
||||
return this;
|
||||
}
|
||||
|
||||
// @function disableClickPropagation(el: HTMLElement): this
|
||||
|
Loading…
Reference in New Issue
Block a user