Skip to content

Instantly share code, notes, and snippets.

@inky
Created July 15, 2010 13:15
Show Gist options
  • Save inky/476917 to your computer and use it in GitHub Desktop.
Save inky/476917 to your computer and use it in GitHub Desktop.
$(function() {
var iPhone = /AppleWebKit.*Mobile/.test(navigator.userAgent),
iPhoneApp = iPhone && !(/Mobile.*Safari/.test(navigator.userAgent));
if (iPhone && !iPhoneApp) {
setTimeout(function() { window.scrollTo(0, 1); }, 0);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment