From 6aed477cc942f38e1d660bbeb734fad75c0e1fb5 Mon Sep 17 00:00:00 2001 From: David Darnes Date: Thu, 14 Jan 2021 10:52:24 +0000 Subject: [PATCH] Only allow smooth scrolling when focused in the page --- src/reset.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reset.css b/src/reset.css index 9dde13c..854dc7a 100644 --- a/src/reset.css +++ b/src/reset.css @@ -26,7 +26,7 @@ ol[role="list"] { } /* Set core root defaults */ -html { +html:focus-within { scroll-behavior: smooth; }