1.0.1 • Published 7 years ago

on-ios-resize v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

on-ios-resize

window.oniosresize

Fires an event every time after the window height resizes, also after show/hide of adress-bar on mobile safari/chrome.

Install

$ npm install on-ios-resize --save

Usage

require('on-ios-resize');

window.oniosresize = function (direction, viewHeight) {
	console.log(direction, viewHeight);
};

Parameter direction is 1 when window height increases, -1 when window height decreases.

Tested?

If you have tested this package and it didn’t work for you, please create an issue here.


Author Christian Heyn