on-ios-resize

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i on-ios-resize

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • christianheyn