Skip to content

Commit f7f80ce

Browse files
committed
Add "-webkit-overflow-scrolling: touch" to book CSS for the page wrapper.
This change permits native momentum scrolling in Safari on iOS in the book.
1 parent 9252525 commit f7f80ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rustbook/css.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ body {
4040
bottom: 0px;
4141
box-sizing: border-box;
4242
background: none repeat scroll 0% 0% #FFF;
43+
-webkit-overflow-scrolling: touch;
4344
}
4445
4546
#page {

0 commit comments

Comments
 (0)