Skip to content

orientationChangeFix

Mike Byrne edited this page Jan 25, 2022 · 2 revisions

description

Stopping iOS devices scaling up when rotating from portrait to landscape

requires

  • nothing

parameters

  • none

returns

  • nothing

example usage:

import { orientationChangeFix } from '@area17/a17-helpers';

document.addEventListener("DOMContentLoaded", () => {
  orientationChangeFix();
});

thanks to

http://stackoverflow.com/questions/5434656/ipad-layout-scales-up-when-rotating-from-portrait-to-landcape

Clone this wiki locally