Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

on-ios-resize

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

on-ios-resize

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

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 04 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc