import r from"../../_util/supportsPassive.mjs";function f(e,s,o,n){if(e&&e.addEventListener){let i=n;i===void 0&&r&&(s==="touchstart"||s==="touchmove"||s==="wheel")&&(i={passive:!1}),e.addEventListener(s,o,i)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(s,o)}}}export{f as default};
