prevent-bounce
v1.0.1
Published
simple prevent iOS dismiss event for web application
Downloads
11
Readme
prevent-bounce
simple prevent iOS dismiss event for web application.
Install
$ npm install prevent-bounce --save
How to Use
Browser
<script src="./prevent-bounce.js"></script>
<script>
var preventBounce = new PreventBounce();
preventBounce.attach();
</script>
ES6
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.