Skip to content

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

Notifications You must be signed in to change notification settings

christianwish/on-ios-resize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published