Skip to content

Instantly share code, notes, and snippets.

@besimhu
Last active June 14, 2016 22:16
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 besimhu/2f48daf83b58ce2413ff to your computer and use it in GitHub Desktop.
Save besimhu/2f48daf83b58ce2413ff to your computer and use it in GitHub Desktop.
Enable overflow scrolling on menus when they are fixed. This works best when you have a container that holds menu items. An unordered list will do just fine.
.mobile-navigation {
position: fixed;
top: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment