1.0.1 • Published 4 years ago

keyboard-close-reset-scroll v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

keyboard-close-reset-scroll

On iOS devices, the keyboard may push the page up to the top, and will not reset automatically when the keyboard closed. This module can solve this problem, avoid page dislocation.

Install

npm install keyboard-close-reset-scroll --save

Uses

import kcrs from 'keyboard-close-reset-scroll';

// init module, will init event listeners
var success = kcrs.init();
console.log('kcrs init success: ', success);

// destroy module, will remove event listeners
kcrs.destroy();

License

The MIT License (MIT)