has-passive-events
Check if passive events are available on the current device
Last updated 8 years ago by dfcreative .
MIT · Repository · Bugs · Original npm
$ cnpm install has-passive-events 
SYNC missed versions from official npm registry.

has-passive-events unstable Build Status

Check if event listener options are available on the current device. Try it out.

npm install has-passive-events

const hasPassive = require('has-passive-events')

hasPassive ? element.addEventListener('wheel', handler, {passive: true}) : element.addEventListener('wheel', handler)

If you find edge case, please address issues.

Current Tags

  • 1.0.0                                ...           latest (8 years ago)

1 Versions

  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org