Skip to content

Instantly share code, notes, and snippets.

@Awilum
Created August 29, 2013 15:57
Show Gist options
  • Save Awilum/6379965 to your computer and use it in GitHub Desktop.
Save Awilum/6379965 to your computer and use it in GitHub Desktop.
Fix After IOS FullScreen Mode
function fixAfterIOSFullScreenMode() {
var flag = false;
$(window).on('resize', function(){
if ($(this).height() > 300 && (window.orientation == 90 || window.orientation == -90)) {
if(flag == false) {
$('body').scrollTop($('body').scrollTop());
flag = true;
}
} else {
flag = false;
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment