Skip to content

Detect if user agent supports passive events

License

Notifications You must be signed in to change notification settings

coolzjy/supports-passive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Detect if user agent supports passive events

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published