public
Created

disable rubber-band scrolling in Safari 5.2 (8536.2.3)

  • Download Gist
css.sass
Sass
1 2 3 4 5 6 7 8 9 10 11 12
html, body
height: 100%
 
body
overflow: hidden
 
#wrap
height: 100%
overflow: auto
#scroll_stop
height: 101%
html.html
HTML
1 2 3 4 5 6 7 8
<html>
<body>
<div id="wrap">
<div id="scroll_stop"></div>
<!-- Your App Here -->
</div>
</body>
</html>

#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.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.