Skip to content

iUUCoder/keyboard-close-reset-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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)