Created
October 7, 2016 07:48
-
-
Save gwagroves/a9f25a6b68eca31a1d431baa547a4c02 to your computer and use it in GitHub Desktop.
Prevent body scrolling on iOS
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
/* http://stackoverflow.com/a/19054794/698511 */ | |
body.no-scroll { | |
left: 0; | |
-webkit-overflow-scrolling: touch; | |
position: fixed; | |
top: 0; | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment