From: UTCWebDev Date: Wed, 28 Aug 2013 19:55:45 +0000 (-0400) Subject: Prevent X-scroll on small screens X-Git-Tag: v3.0.1~64^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee2e2ae0ae9991432b16ffd69eb4f22ccfb2869a;p=thirdparty%2Fbootstrap.git Prevent X-scroll on small screens 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. --- diff --git a/examples/offcanvas/offcanvas.css b/examples/offcanvas/offcanvas.css index 8303a8630b..06aad4bda0 100644 --- a/examples/offcanvas/offcanvas.css +++ b/examples/offcanvas/offcanvas.css @@ -2,6 +2,9 @@ * Style tweaks * -------------------------------------------------- */ +html { + overflow-x: hidden; +} body { padding-top: 70px; }