Suppresses the generic warning in Chrome on passive listeners. None of
these listeners affect the page scroll, but are instead scoped to very
specific elements. Additionally, these listeners are supposed to be not
passive due to their coniditional blocking.
if (event.target === _container) {
event.preventDefault();
}
- });
+ }, { passive: false });
elById('content').appendChild(_container);
if (allowScroll === false) {
event.preventDefault();
}
- });
+ }, { passive: false });
var content;
if (element === null) {
else if (event.deltaY > 0 && (menu.scrollTop + menuHeight === menuRealHeight)) {
event.preventDefault();
}
- });
+ }, { passive: false });
}
}