Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Stafie/7822522 to your computer and use it in GitHub Desktop.
Save Stafie/7822522 to your computer and use it in GitHub Desktop.
iOS fix for body scrolling underneath a modal/popover element
//http://uxebu.com/blog/2011/11/21/fixing-webkit-overflow-scroll-when-overlaid-by-element/
body {
overflow: scroll;
-webkit-overflow-scrolling: touch;
}
.modal {
overflow: scroll;
-webkit-overflow-scrolling: touch;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment