# on-scroll

> a generic, mobile-friendly scroll listener

Latest version **1.0.0** (published 2017-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install on-scroll
pnpm add on-scroll
yarn add on-scroll
bun add on-scroll
```

## 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 | 2017-07-19 |
| First published | 2017-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michael Rhodes |
| Maintainers | michaelrhodes |
| Keywords | scroll, mobile |

## Links

- npm: https://www.npmjs.com/package/on-scroll
- Repository: git@github.com:michaelrhodes/on-scroll
- Homepage: https://github.com/michaelrhodes/on-scroll
- Issues: https://github.com/michaelrhodes/on-scroll/issues
- npm.io page: https://npm.io/package/on-scroll

## Recent versions

- 1.0.0 (latest) — 2017-07-19

## README

# on-scroll

on-scroll is a generic, mobile-friendly scroll listener. It can be used as a basis for modules that need to track element’s scroll offsets, even on mobile devices that don’t emit scroll events during gestures.

## Install

```sh
npm install on-scroll
```

### Usage

```js
var onscroll = require('on-scroll')

var el = document.body
var stop = onscroll(el, function (x, y) {
  console.log(x, y)
  => 0 235

  stop()
})
```

### License
[MIT](http://opensource.org/licenses/MIT)

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