Skip to content

Commit

Permalink
Add "-webkit-overflow-scrolling: touch" to book CSS for the page wrap…
Browse files Browse the repository at this point in the history
…per.

This change permits native momentum scrolling in Safari on iOS in the book.
  • Loading branch information
nelsonjchen committed Jan 26, 2015
1 parent 9252525 commit f7f80ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rustbook/css.rs
Expand Up @@ -40,6 +40,7 @@ body {
bottom: 0px;
box-sizing: border-box;
background: none repeat scroll 0% 0% #FFF;
-webkit-overflow-scrolling: touch;
}
#page {
Expand Down

0 comments on commit f7f80ce

Please sign in to comment.