Skip to content

Instantly share code, notes, and snippets.

@Troland
Last active September 3, 2018 06:28
Show Gist options
  • Save Troland/603c122e391f7969ab1c696f927aa742 to your computer and use it in GitHub Desktop.
Save Troland/603c122e391f7969ab1c696f927aa742 to your computer and use it in GitHub Desktop.
// prevent container such as body scroll along with the dialog
.no-scroll {
position: fixed;
top: 0;
left: 0;
width: 100%;
-webkit-overflow-scrolling: touch;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment