Created
June 30, 2015 03:30
-
-
Save RhinoLu/f5c97fcc3bd1abf796dd to your computer and use it in GitHub Desktop.
safari 捲動 Scrolling on iOS Overflow Elements
This file contains hidden or 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
// https://css-tricks.com/snippets/css/momentum-scrolling-on-ios-overflow-elements/ | |
.module { | |
width: 300px; | |
height: 200px; | |
overflow-y: scroll; /* has to be scroll, not auto */ | |
-webkit-overflow-scrolling: touch; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment