From ad47c24c709dab1d44ccea5b5220f934acacd7aa Mon Sep 17 00:00:00 2001 From: Alexey Pyzhianov Date: Wed, 10 Jun 2020 19:48:00 +0300 Subject: [PATCH] fix(www): sidebar scrolling shouldn't move main content (#24438) * Previously scrolling or swiping inside the navigation sidebar could result in main content moving. Fixed for most browsers with overflow-behavior: contain Resolves #24255 Co-authored-by: gatsbybot --- www/src/components/sidebar/sidebar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/src/components/sidebar/sidebar.js b/www/src/components/sidebar/sidebar.js index 12c2db0633a47..962298b92fe54 100644 --- a/www/src/components/sidebar/sidebar.js +++ b/www/src/components/sidebar/sidebar.js @@ -150,6 +150,7 @@ export default function Sidebar({ border: 0, display: `block`, overflowY: `auto`, + overscrollBehavior: `contain`, transition: t => `opacity ${t.transition.speed.default} ${t.transition.curve.default}`, zIndex: 10,