supports-passive
v0.0.1
Published
Detect if user agent supports passive events.
Downloads
13
Readme
Supports Passive
Detect if user agent supports passive events
Usage
npm i supports-passive -S
import supportsPassive from 'supports-passive'
el.addEventListener('scroll', handler,
supportsPassive ? { passive: true } : undefined)