keyboard-close-reset-scroll
v1.0.1
Published
Reset scroll on keyboard close.
Downloads
2
Maintainers
Readme
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)