Skip to main content
(function() {
const originalAddEventListener = EventTarget.prototype.addEventListener;
EventTarget.prototype.addEventListener = function(type, listener, options) {
if (type === "wheel" || type === "touchstart" || type === "touchmove") {
options = options || {};
if (typeof options === "object") {
options.passive = true;
}
}
return originalAddEventListener.call(this, type, listener, options);
};
})();