Supports Passive Detect if user agent supports passive events Usage npm i supports-passive -S import supportsPassive from 'supports-passive' el.addEventListener('mousewheel', handler, supportsPassive ? { passive: true } : undefined)