supports-passive

0.0.1 • Public • Published

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)

Keywords

Install

npm i supports-passive

DownloadsWeekly Downloads

16

Version

0.0.1

License

MIT

Last publish

Collaborators

  • cool_zjy