From 24a7c9f3efd80d80b423cd3afa88a6b3406e9f7a Mon Sep 17 00:00:00 2001 From: Paul Adam Davis Date: Fri, 19 Sep 2014 14:52:54 +0100 Subject: [PATCH] Prevent elastic scrolling on the whole page --- core/client/assets/sass/patterns/global.scss | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/client/assets/sass/patterns/global.scss b/core/client/assets/sass/patterns/global.scss index 9c0d545dc0f..81334dd5ed2 100644 --- a/core/client/assets/sass/patterns/global.scss +++ b/core/client/assets/sass/patterns/global.scss @@ -9,13 +9,22 @@ html { font: 62.5%/1.65 "Open Sans", sans-serif; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + + // Prevent elastic scrolling on the whole page + height: 100%; + width: 100%; + overflow: hidden; } body { - width: 100%; color: lighten($darkgrey, 10%); font-size: 1.4rem; font-feature-settings: "kern" 1; + + // Prevent elastic scrolling on the whole page + height: 100%; + width: 100%; + overflow: auto; overflow-x: hidden; // Never allow horizontal scrollbars }