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
- Host: GitHub
- URL: https://github.com/hg-pyun/prevent-bounce
- Owner: hg-pyun
- License: mit
- Created: 2018-06-03T07:09:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-09T10:46:02.000Z (about 8 years ago)
- Last Synced: 2025-05-09T01:51:19.563Z (about 1 year ago)
- Topics: application, ios, javascript, library, web
- Language: JavaScript
- Size: 12.7 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.