From 20970ca9e6105d83edc4d5dd1159975e3199657d Mon Sep 17 00:00:00 2001 From: Patrick Marsceill Date: Sun, 16 Dec 2018 15:23:18 -0500 Subject: [PATCH] Better code scrolling for touch --- _sass/code.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_sass/code.scss b/_sass/code.scss index f29a97c..a6bf33a 100644 --- a/_sass/code.scss +++ b/_sass/code.scss @@ -15,6 +15,7 @@ pre.highlight { padding: $sp-3; margin-bottom: 0; background-color: $code-background-color; + -webkit-overflow-scrolling: touch; code { padding: 0; @@ -104,7 +105,7 @@ pre.highlight { .code-example { padding: $sp-3; margin-bottom: $sp-3; - overflow: scroll; + overflow: auto; border: 1px solid $border-color; border-radius: $border-radius;