Skip to content

Instantly share code, notes, and snippets.

@bingeboy
Created September 15, 2014 15:18
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 bingeboy/f5bde6139d2335118bff to your computer and use it in GitHub Desktop.
Save bingeboy/f5bde6139d2335118bff to your computer and use it in GitHub Desktop.
get rid of ios rubberband effect on scrolling
html{
margin:0;
padding:0;
overflow: hidden;
}
body{
position: absolute;
width:100%;
height:100%;
overflow: auto;
}
@bingeboy
Copy link
Author

no preventDefault needed in JS.

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