Created
September 15, 2014 15:18
-
-
Save bingeboy/f5bde6139d2335118bff to your computer and use it in GitHub Desktop.
get rid of ios rubberband effect on scrolling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html{ | |
margin:0; | |
padding:0; | |
overflow: hidden; | |
} | |
body{ | |
position: absolute; | |
width:100%; | |
height:100%; | |
overflow: auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no preventDefault needed in JS.