about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNelson Chen <crazysim@gmail.com>2015-01-25 23:54:19 -0800
committerNelson Chen <crazysim@gmail.com>2015-01-26 02:37:01 -0800
commitf7f80ce61a4e3e684714614a57320cc8fd0932ef (patch)
tree4bde978e54cf479d7e0912ce80e571d63da38b6a
parent9252525196505f33b1986c78068d63e567c31c43 (diff)
downloadrust-f7f80ce61a4e3e684714614a57320cc8fd0932ef.tar.gz
rust-f7f80ce61a4e3e684714614a57320cc8fd0932ef.zip
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.
-rw-r--r--src/rustbook/css.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rustbook/css.rs b/src/rustbook/css.rs
index 65ba031a2d6..44c603e01ed 100644
--- a/src/rustbook/css.rs
+++ b/src/rustbook/css.rs
@@ -40,6 +40,7 @@ body {
     bottom: 0px;
     box-sizing: border-box;
     background: none repeat scroll 0% 0% #FFF;
+    -webkit-overflow-scrolling: touch;
 }
 
 #page {