Last active
June 10, 2017 08:03
-
-
Save yanzhihong23/c04d781c80e29db9fdf5c1af1430c7eb to your computer and use it in GitHub Desktop.
Scroll IFRAMEs 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
.scroll-wrapper { | |
-webkit-overflow-scrolling: touch !important; | |
overflow-y: scroll !important; | |
position: fixed; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
top: 0; | |
} | |
.scroll-wrapper iframe { | |
height: 100%; | |
width: 100%; | |
} | |
body { -webkit-transform: translate3d(0, 0, 0); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment