Last active
December 19, 2016 12:50
-
-
Save geoffreydhuyvetters/252519f1ab3ba74026ac6d2459f27fa4 to your computer and use it in GitHub Desktop.
prevent 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
document.addEventListener(`touchmove`, e => { | |
e.preventDefault(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment