has-passive-events

Check if passive events are available on the current device

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
has-passive-events
001.0.05 years ago5 years agoMinified + gzip package size for has-passive-events in KB

Readme

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 ```js 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.