# has-passive-events

> Check if passive events are available on the current device

Latest version **1.0.0** (published 2018-01-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install has-passive-events
pnpm add has-passive-events
yarn add has-passive-events
bun add has-passive-events
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-01-26 |
| First published | 2018-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dmitry Yv |
| Maintainers | dfcreative |
| Keywords | path, url |

## Links

- npm: https://www.npmjs.com/package/has-passive-events
- Repository: https://github.com/dfcreative/has-passive-events
- Homepage: https://github.com/dfcreative/has-passive-events#readme
- Issues: https://github.com/dfcreative/has-passive-events/issues
- npm.io page: https://npm.io/package/has-passive-events

## Dependencies (1)

- [is-browser](https://npm.io/package/is-browser.md) ^2.0.1

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-01-26

## README

# has-passive-events  [![unstable](https://img.shields.io/badge/stability-unstable-green.svg)](http://github.com/badges/stability-badges) [![Build Status](https://img.shields.io/travis/dfcreative/has-passive-events.svg)](https://travis-ci.org/dfcreative/has-passive-events)

Check if event listener options are available on the current device. [Try it out](http://dfcreative.github.io/has-passive-events/).

[![npm install has-passive-events](https://nodei.co/npm/has-passive-events.png?mini=true)](https://npmjs.org/package/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](https://github.com/dfcreative/has-passive-events/issues).

---
_Source: https://npm.io/package/has-passive-events · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
