An open API service indexing awesome lists of open source software.

https://github.com/hg-pyun/prevent-bounce

simple prevent iOS dismiss event for web application
https://github.com/hg-pyun/prevent-bounce

application ios javascript library web

Last synced: 8 months ago
JSON representation

simple prevent iOS dismiss event for web application

Awesome Lists containing this project

README

          

# prevent-bounce
simple prevent iOS dismiss event for web application.

# Install
```
$ npm install prevent-bounce --save
```

# How to Use
#### Browser
```html

var preventBounce = new PreventBounce();
preventBounce.attach();

```

#### ES6
```javascript
import PreventBounce from 'prevent-bounce';

const preventBounce = new PreventBounce();
preventBounce.attach();
```

# Method
#### attach(element)
attach prevent event the element. if element is blank, default attached `document`.

#### remove()
remove prevent event.