# remove-ios-bounce

> Remove iOS bounce by Touch evnet listener and setting element's scorllTop&scrollLeft attribute.

Latest version **1.0.4** (published 2020-12-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install remove-ios-bounce
pnpm add remove-ios-bounce
yarn add remove-ios-bounce
bun add remove-ios-bounce
```

## 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.4 |
| Published | 2020-12-09 |
| First published | 2020-12-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yource |
| Maintainers | yource |
| Keywords | iOS, bounce, h5 |

## Links

- npm: https://www.npmjs.com/package/remove-ios-bounce
- Repository: https://github.com/yource/bounce-pro
- Homepage: https://github.com/yource/bounce-pro#readme
- Issues: https://github.com/yource/bounce-pro/issues
- npm.io page: https://npm.io/package/remove-ios-bounce

## Recent versions

- 1.0.4 (latest) — 2020-12-09
- 1.0.3 — 2020-12-09
- 1.0.2 — 2020-12-07
- 1.0.1 — 2020-12-07
- 1.0.0 — 2020-12-07

## README

# remove-ios-bounce
Remove iOS bounce by Touch evnet listener and settting scrollTop&scrollLeft attributes.

<p>SUGGEST: <a href="https://github.com/yource/bounce-pro" traget="_blank" >bounce-pro</a></p>

## Installing
Using npm:
```
$ npm install remove-ios-bounce
```
Using CDN in bower:
```
<script src="https://cdn.jsdelivr.net/npm/remove-ios-bounce/lib/remove-bounce.min.js"></script>
```
## Example
remove bounce effects on body:
```
import {removeBodyBounce} from 'remove-ios-bounce';

removeBodyBounce();
```
remove bounce effects on other elements:
```
import {RemoveBounce} from 'remove-ios-bounce';

/**
 * new RemoveBounce(containerElement, onlyIOS)
 * @param:containerElement, required
 * @param:onlyIOS, Boolean, not required(defalut false). TRUE means the function will work on iOS only.
 **/

// After the containerElement is rendered, perform initialization.
const bounceCtrl = new RemoveBounce(document.getElementById('container'));

// Before the containerElement is removed, clear event listener by destory function.
bounceCtrl.destory();
```

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