]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Prevent X-scroll on small screens 10227/head
authorUTCWebDev <Chris-Gilligan@mocs.utc.edu>
Wed, 28 Aug 2013 19:55:45 +0000 (15:55 -0400)
committerUTCWebDev <Chris-Gilligan@mocs.utc.edu>
Wed, 28 Aug 2013 19:55:45 +0000 (15:55 -0400)
html overflow-x must be hidden to prevent accidental x-scroll on small screens. This is more apparent with touch screens, where the user often gestures diagonally instead of a true vertical gesture.

examples/offcanvas/offcanvas.css

index 8303a8630b11d472c6b6f903ce12829a84ffea99..06aad4bda07adfe07669f1d4447886b8189e8687 100644 (file)
@@ -2,6 +2,9 @@
  * Style tweaks
  * --------------------------------------------------
  */
+html {
+  overflow-x: hidden;
+}
 body {
   padding-top: 70px;
 }