Skip to content

Instantly share code, notes, and snippets.

@chrisdrackett
Created March 20, 2012 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdrackett/2137382 to your computer and use it in GitHub Desktop.
Save chrisdrackett/2137382 to your computer and use it in GitHub Desktop.
disable rubber-band scrolling in Safari 5.2 (8536.2.3)
html, body
height: 100%
body
overflow: hidden
#wrap
height: 100%
overflow: auto
#scroll_stop
height: 101%
<html>
<body>
<div id="wrap">
<div id="scroll_stop"></div>
<!-- Your App Here -->
</div>
</body>
</html>
@chrisdrackett
Copy link
Author

scroll_stop is just an empty div that is taller than the given page. Sadly this is a lot more code than was needed before this version of safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment