1.0.1 • Published 6 years ago

prevent-bounce v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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.

1.0.1

6 years ago

1.0.0

6 years ago