Skip to content

Commit

Permalink
Fix vodkabears#184: IOS 9 safari scaling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vodkabears committed Oct 11, 2015
1 parent b0a5f08 commit 2a2cc04
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/remodal.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@
style.OAnimationName !== undefined;
})();

/**
* Is iOS?
* @private
* @const
* @type {Boolean}
*/
var IS_IOS = /iPad|iPhone|iPod/.test(navigator.platform);

/**
* Current modal
* @private
Expand Down Expand Up @@ -228,6 +236,10 @@
* @private
*/
function lockScreen() {
if (IS_IOS) {
return;
}

var $html = $('html');
var lockedClass = namespacify('is-locked');
var paddingRight;
Expand All @@ -249,6 +261,10 @@
* @private
*/
function unlockScreen() {
if (IS_IOS) {
return;
}

var $html = $('html');
var lockedClass = namespacify('is-locked');
var paddingRight;
Expand Down

0 comments on commit 2a2cc04

Please sign in to comment.