Change line ~1143 to from:
function addEvent(el, e, fn, bool) {
if (!e) return;
el.addEventListener ? el.addEventListener(e, fn, !!bool) : el.attachEvent('on' + e, fn);
}
Code language: JavaScript (javascript)
to this:
function addEvent(el, e, fn, bool) {
if (!e) return;
const options = {
get passive() {
return e === 'wheel';
}
}
el.addEventListener ? el.addEventListener(e, fn, options) : el.attachEvent('on' + e, fn);
}
Code language: JavaScript (javascript)